CocoaSPDY icon indicating copy to clipboard operation
CocoaSPDY copied to clipboard

the host should is host:port

Open szrexzhu opened this issue 8 years ago • 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.

szrexzhu avatar Jul 28 '16 03:07 szrexzhu

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

kgoodier avatar Aug 05 '16 04:08 kgoodier