bind: improve header flag usage with tags#822
Merged
Conversation
Contributor
Choraden
commented
May 29, 2024
The Host header is special and cannot be modified. Forwarder: 2024/05/29 16:19:50.958997 [INFO] configuration header="Host:example.com" ... 2024/05/29 16:19:50.959097 [proxy] [INFO] no upstream proxy specified 2024/05/29 16:19:50.959098 [proxy] [INFO] localhost proxying mode=deny 2024/05/29 16:19:50.959349 [proxy] [INFO] PROXY server listen address=[::]:3128 protocol=http 2024/05/29 16:19:50.959440 [api] [INFO] HTTP server listen address=[::]:10000 protocol=http 2024/05/29 16:20:08.064039 [proxy] [DEBUG] accepted connection from 192.168.127.1:20458 2024/05/29 16:20:08.064212 [proxy] [DEBUG] [1-e625c0c2] opening connection to tcp httpbin:8080 w2024/05/29 16:20:08.064599 [proxy] [DEBUG] [1-e625c0c2] connection to tcp httpbin:8080 established duration=371.459µs y2024/05/29 16:20:08.064814 [proxy] [INFO] [1-e625c0c2] GET http://httpbin:8080/status/200 status=200 duration=666.084µs GET http://httpbin:8080/status/200 HTTP/1.1 Host: httpbin:8080 Content-Length: 0 Accept: */* User-Agent: curl/8.6.0 Via: 1.1 forwarder-d922bb2844c309a350b1 X-Forwarded-For: 192.168.127.1 X-Forwarded-Host: httpbin:8080 X-Forwarded-Proto: http X-Forwarded-Url: http://httpbin:8080/status/200 HTTP/1.1 200 OK Content-Length: 0 Date: Wed, 29 May 2024 16:20:08 GMT HTTPBIN: 2024/05/29 16:20:08.064729 [server] [INFO] GET /status/200 status=200 duration=4.5µs GET /status/200 HTTP/1.1 Host: httpbin:8080 Content-Length: 0 Accept: */* Accept-Encoding: gzip User-Agent: curl/8.6.0 Via: 1.1 forwarder-d922bb2844c309a350b1 X-Forwarded-For: 192.168.127.1 X-Forwarded-Host: httpbin:8080 X-Forwarded-Proto: http X-Forwarded-Url: http://httpbin:8080/status/200
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.