Missing user agent

Fixed issue 7 "Middleware expects a user-agent". This was generating some errors on one of my apps.