Skip to content

test: fix assertion messages and add TestProxyHeaders_NoHeaders in proxy_headers_test.go - #269

Open
aoright wants to merge 1 commit into
gorilla:mainfrom
aoright:test/proxy-headers-typos-and-noheaders-case
Open

test: fix assertion messages and add TestProxyHeaders_NoHeaders in proxy_headers_test.go#269
aoright wants to merge 1 commit into
gorilla:mainfrom
aoright:test/proxy-headers-typos-and-noheaders-case

Conversation

@aoright

@aoright aoright commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • In proxy_headers_test.go::TestProxyHeaders, fix copy-paste error messages for scheme and host assertions.
  • Add TestProxyHeaders_NoHeaders to test that ProxyHeaders preserves default RemoteAddr, URL.Scheme, and Host when no reverse proxy headers are present.

…oxy_headers_test.go

Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant