Skip to content
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

Add option to build link from x-forwarded headers #10

Merged
merged 1 commit into from
Jul 30, 2020

Conversation

albertored
Copy link
Contributor

When the application using scrivener is being served by some proxy the generated link header can contain wrong values.

This PR adds an option to Scrivener.Headers.paginate for taking into account request x-forwarded headers for generating the link response header. The default behavior remains that of only using conn for building it.

If you think is worth to add this feature I will also add it to documentation

Copy link
Member

@doomspork doomspork left a comment

Choose a reason for hiding this comment

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

My sincerest apologizes for the delay getting to your PR. This happened to be opened shortly after I seriously injured my back and was out of comission for awhile.

This change looks good so let's get it merged and documented 🎉

I hope you are well, thanks for getting involved!

@doomspork doomspork merged commit 637fb92 into beam-community:master Jul 30, 2020
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