[PR #55] [MERGED] HTTP forwarded headers #126

Closed
opened 2026-05-05 11:02:03 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mmatczuk/go-http-tunnel/pull/55
Author: @mmatczuk
Created: 11/23/2017
Status: Merged
Merged: 11/24/2017
Merged by: @mmatczuk

Base: masterHead: mmt/http_forwarded_headers


📝 Commits (10+)

  • 47215d4 proto: adjusted const order
  • 9626acf proto: removed redundant constant type info
  • 5912dda proto: removed unused header path T-Path
  • bc0c6c4 proto: switch from "T-" prefixed headers to "X-" headers
  • ba9194f proto: test constants rename
  • 0cad237 proto: rename ControlMessage.Update to WriteToHeader
  • 03c3b65 proto: rename ForwardedBy to ForwardedHost
  • c116e47 proto: Proto changed to ForwardedProto
  • cef8620 server: support for X-Forwarded-For in RoundTriper
  • d20f372 httpproxy: support for X-Forwarded-Host and X-Forwarded-Proto

📊 Changes

10 files changed (+152 additions, -100 deletions)

View changed files

📝 .gitignore (+3 -2)
📝 client.go (+3 -2)
📝 httpproxy.go (+9 -4)
📝 integration_test.go (+19 -7)
📝 proto/controlmsg.go (+26 -33)
📝 proto/controlmsg_test.go (+18 -28)
📝 proxy.go (+2 -2)
📝 server.go (+43 -16)
📝 tcpproxy.go (+6 -6)
📝 utils.go (+23 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mmatczuk/go-http-tunnel/pull/55 **Author:** [@mmatczuk](https://github.com/mmatczuk) **Created:** 11/23/2017 **Status:** ✅ Merged **Merged:** 11/24/2017 **Merged by:** [@mmatczuk](https://github.com/mmatczuk) **Base:** `master` ← **Head:** `mmt/http_forwarded_headers` --- ### 📝 Commits (10+) - [`47215d4`](https://github.com/mmatczuk/go-http-tunnel/commit/47215d4e94a0e688d955cb9735e6cf4c85080d20) proto: adjusted const order - [`9626acf`](https://github.com/mmatczuk/go-http-tunnel/commit/9626acf5dc9ba910ab253c628485283359d5d9a8) proto: removed redundant constant type info - [`5912dda`](https://github.com/mmatczuk/go-http-tunnel/commit/5912ddab031bc0c515d78758ad470fad5883d48b) proto: removed unused header path T-Path - [`bc0c6c4`](https://github.com/mmatczuk/go-http-tunnel/commit/bc0c6c4aefafe4e6bb5c3f6fef48f0ecb8d13ee1) proto: switch from "T-" prefixed headers to "X-" headers - [`ba9194f`](https://github.com/mmatczuk/go-http-tunnel/commit/ba9194f760bf275f4abab3b3cfc2f7b96970b756) proto: test constants rename - [`0cad237`](https://github.com/mmatczuk/go-http-tunnel/commit/0cad23750cd01f25beaace72b95241f11de4a6f3) proto: rename ControlMessage.Update to WriteToHeader - [`03c3b65`](https://github.com/mmatczuk/go-http-tunnel/commit/03c3b655173c374abb57690b997fee5ac2877cd2) proto: rename ForwardedBy to ForwardedHost - [`c116e47`](https://github.com/mmatczuk/go-http-tunnel/commit/c116e47de022b769abade170117f977702686d10) proto: Proto changed to ForwardedProto - [`cef8620`](https://github.com/mmatczuk/go-http-tunnel/commit/cef8620290167f678c949b0b2bcadcf909fb82a7) server: support for X-Forwarded-For in RoundTriper - [`d20f372`](https://github.com/mmatczuk/go-http-tunnel/commit/d20f372e216ce167cf01d8b6b91688f459ecb439) httpproxy: support for X-Forwarded-Host and X-Forwarded-Proto ### 📊 Changes **10 files changed** (+152 additions, -100 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+3 -2) 📝 `client.go` (+3 -2) 📝 `httpproxy.go` (+9 -4) 📝 `integration_test.go` (+19 -7) 📝 `proto/controlmsg.go` (+26 -33) 📝 `proto/controlmsg_test.go` (+18 -28) 📝 `proxy.go` (+2 -2) 📝 `server.go` (+43 -16) 📝 `tcpproxy.go` (+6 -6) 📝 `utils.go` (+23 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 11:02:03 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/go-http-tunnel#126
No description provided.