Skip to content

Add middleware for x-forwarded-proto header#13

Open
lukaszkorecki wants to merge 1 commit intoring-clojure:masterfrom
lukaszkorecki:master
Open

Add middleware for x-forwarded-proto header#13
lukaszkorecki wants to merge 1 commit intoring-clojure:masterfrom
lukaszkorecki:master

Conversation

@lukaszkorecki
Copy link
Copy Markdown

This follows existing pattern for x-forwarded-for header support - when x-forwarded-proto is detected and contains one of allowed values, it will override :scheme key in the request map.

Copy link
Copy Markdown
Member

@weavejester weavejester left a comment

Choose a reason for hiding this comment

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

Thanks for the commit. There's some minor formatting/style changes that I've added as inline comments. Can you also change the commit message to:

Add middleware for x-forwarded-proto header

This ensures the PR adheres to the contributing guidelines.

@lukaszkorecki
Copy link
Copy Markdown
Author

Happy to help - I'll pick this up on Monday and apply all suggestions. I assume you prefer this PR be a squashed commit, right?

@weavejester
Copy link
Copy Markdown
Member

Yep; this seems a simple enough addition that only one commit is required.

@lukaszkorecki lukaszkorecki changed the title Add new middleware for x-forwarded-proto header support Add middleware for x-forwarded-proto header Apr 6, 2026
@lukaszkorecki
Copy link
Copy Markdown
Author

@weavejester updated!

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