Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

the host should is host:port #150

Open
szrexzhu opened this issue Jul 28, 2016 · 1 comment
Open

the host should is host:port #150

szrexzhu opened this issue Jul 28, 2016 · 1 comment
Labels

Comments

@szrexzhu
Copy link

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 kgoodier added the bug label Aug 5, 2016
@kgoodier
Copy link
Contributor

kgoodier commented Aug 5, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants