OSDN Git Service

Fixed problem with proxy server sometimes responds with 400 Bad Request when trying
authorHenrik Baard <henrik.baard@sonyericsson.com>
Wed, 24 Feb 2010 07:41:48 +0000 (08:41 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 5 Aug 2011 08:05:30 +0000 (16:05 +0800)
commit285887a399bcd3398bdeb77a17bc7aee1d30c608
treed0ad7614865202d59cb2daf70eba6775d95eef23
parent6bd88b43ac0b061fe157f01b26afd9351afb5261
Fixed problem with proxy server sometimes responds with 400 Bad Request when trying
to connect to a site using https.

The CONNECT to the server lacks the 'host' header which is mandatory according to the
specification. Some proxy servers are strictly following the specification and sends
back the 400 Bad Requst error code.
core/java/android/net/http/HttpsConnection.java