twitter-archive / CocoaSPDY

SPDY for iOS and OS X
Apache License 2.0
2.39k stars 233 forks source link

the host should is host:port #150

Open szrexzhu opened 8 years ago

szrexzhu commented 8 years ago

In -allSPDYHeader of NSURLRequest + SPDYURLRequest.m.

  1. - NSMutableDictionary *spdyHeaders = [[NSMutableDictionary alloc] initWithDictionary:@{
  2. - @":method" : self.HTTPMethod,
  3. - @":path" : path,
  4. - @":version" : @"HTTP/1.1",
  5. - @":host" : url.host,
  6. - @":scheme" : url.scheme
  7. - }];

the host should is host:port。

(http://dev.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3#TOC-3.2.1-Request) ":host" - the hostport (See RFC1738) portion of the URL for this request (e.g. "www.google.com:1234"). This header is the same as the HTTP 'Host' header.

kgoodier commented 8 years ago

Good find, thanks! Feel free to submit a pull request.