8000 Only overwrite header if it doesn’t exist by 8W9aG · Pull Request #2366 · replicate/cog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Only overwrite header if it doesn’t exist #2366

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

8W9aG
Copy link
Contributor
@8W9aG 8W9aG commented May 27, 2025
  • Do not overwrite the content-type header if it is explicitly set by the user

* Do not overwrite the content-type header if it
is explicitly set by the user
@8W9aG 8W9aG requested review from michaeldwan and aron May 27, 2025 19:00
Copy link
Member
@michaeldwan michaeldwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, question about const

}))
defer server.Close()

const testHeader = "X-Test-Header"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is const required for the test? it's fine, just uncommon to see in a function body

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose I don't expect it to change jajaja

@8W9aG 8W9aG merged commit 9cf961b into main May 27, 2025
69 of 72 checks passed
@8W9aG 8W9aG deleted the sackfield/fix-header-overwrite branch May 27, 2025 22:06
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.

2 participants
0