Skip to content

Fix header body splitting when doing https request through proxy#45

Open
cww0614 wants to merge 1 commit intozweifisch:masterfrom
cww0614:https-proxy
Open

Fix header body splitting when doing https request through proxy#45
cww0614 wants to merge 1 commit intozweifisch:masterfrom
cww0614:https-proxy

Conversation

@cww0614
Copy link

@cww0614 cww0614 commented May 31, 2019

When doing https request through a http proxy in curl, the response will be like this: (executing curl -i https://httpbin.org/ip)

HTTP/1.1 200 Connection Established

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Fri, 31 May 2019 04:03:27 GMT
Referrer-Policy: no-referrer-when-downgrade
Server: nginx
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Content-Length: 49
Connection: keep-alive

{
  "origin": "xxx.xxx.xxx.xxx"
}

This response is just like that when redirection is involved. Therefore the redirection-handling part is modified slightly to fix the problem.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant