Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET: Header "connection: keep-alive" becames "connection: close" in respose #377

Closed
Luckjanov opened this issue Aug 22, 2017 · 4 comments
Closed

Comments

@Luckjanov
Copy link

Hello,

When I make request to GET http://httpbin.org/get with header "connection: keep-alive":

GET /get HTTP/1.1
Connection: keep-alive
Host: httpbin.org
User-Agent: Paw/3.1.3 (Macintosh; OS X/10.12.6) GCDHTTPRequest

in response body the header becames "connection: close":

{
  "args": {}, 
  "headers": {
    "Connection": "close", 
    "Host": "httpbin.org", 
    "User-Agent": "Paw/3.1.3 (Macintosh; OS X/10.12.6) GCDHTTPRequest"
  }, 
  "origin": "46.0.48.165", 
  "url": "http://httpbin.org/get"
}
@Luckjanov Luckjanov changed the title Header "connection: keep-alive" becames "connection: close" in respose GET: Header "connection: keep-alive" becames "connection: close" in respose Aug 22, 2017
@tmenier
Copy link

tmenier commented Nov 21, 2017

I'm seeing this too, thought I was losing my mind. It appears to be an issue with /headers, and most likely other endpoints as well.

@sigmavirus24
Copy link
Contributor

This is entirely due to the fact that HTTPbin is deployed on Heroku. Between the application and the user, there is a router (and proxy) and that router has (according to the RFCs) full permission to modify certain headers including this one. Without finding some other sponsor to host HTTPbin on and doing the operational work of moving there and keeping it running, there's little to be done in this case.

@tmenier
Copy link

tmenier commented Nov 27, 2017

@sigmavirus24 That makes perfect sense, thanks for the explanation.

@sigmavirus24
Copy link
Contributor

You're welcome @tmenier :)

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

No branches or pull requests

3 participants