[PR #344] [MERGED] fix(http): Set host header based on in #4833

Closed
opened 2026-06-02 02:56:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/newt/pull/344
Author: @LaurenceJJones
Created: 5/8/2026
Status: Merged
Merged: 5/8/2026
Merged by: @oschwartz10612

Base: devHead: investigate/private-http-redirect-500


📝 Commits (1)

  • 6aa94c0 fix(http): Set host header based on in

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 netstack2/http_handler.go (+3 -0)

📄 Description

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

fix https://github.com/fosrl/pangolin/issues/2952 issue by setting the incoming host header to the outgoing one by the reverse proxy, this was the default behaviour when using single proxy but now since we use more features it now rewrites the host header

How to test?

The downstream application should now receive the same host header that was sent by the client.


🔄 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/fosrl/newt/pull/344 **Author:** [@LaurenceJJones](https://github.com/LaurenceJJones) **Created:** 5/8/2026 **Status:** ✅ Merged **Merged:** 5/8/2026 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `investigate/private-http-redirect-500` --- ### 📝 Commits (1) - [`6aa94c0`](https://github.com/fosrl/newt/commit/6aa94c0c2a4861378a468e0280d6e6cdc2db6ab3) fix(http): Set host header based on in ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netstack2/http_handler.go` (+3 -0) </details> ### 📄 Description ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description fix https://github.com/fosrl/pangolin/issues/2952 issue by setting the incoming host header to the outgoing one by the reverse proxy, this was the default behaviour when using single proxy but now since we use more features it now rewrites the host header ## How to test? The downstream application should now receive the same host header that was sent by the client. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-02 02:56:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#4833