When a user is authenticating with its Google account, the following error can be observed:
[HTTP/400] <!DOCTYPE html> <html lang=en> <meta charset=utf-8> <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"> <title>Error 400 (Bad Request)!!1</title> <style> *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overf...
Query made by phabricator is the following:
GET /plus/v1/people/me?access_token=***MASKED*** HTTP/1.1 Host: www.googleapis.com Accept: */* Content-Length: 6 Content-Type: application/x-www-form-urlencoded
Content-Length is provided even if no body is present in the query. www.googleapis.com is not accepting it there is no HTTP body, which is conform with RFC 2616:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.4
Messages MUST NOT include both a Content-Length header field and a non-identity transfer-coding. If the message does include a non- identity transfer-coding, the Content-Length MUST be ignored.
This can be observed on https://phab.enlightenment.org/auth/ today.