twitter-archive/CocoaSPDY

the host should is host:port

szrexzhu opened this issue · 1 comments

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.

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