Skip to content

Add ability to pass additional request headers to render server#2

Merged
BenAtEventbrite merged 1 commit into
masterfrom
request-headers
Apr 5, 2016
Merged

Add ability to pass additional request headers to render server#2
BenAtEventbrite merged 1 commit into
masterfrom
request-headers

Conversation

@benmvp
Copy link
Copy Markdown
Owner

@benmvp benmvp commented Apr 5, 2016

Eventbrite needs the ability to pass language information from the Django layer to the React render server. This PR enables being able to pass any request headers in the POST to the server.

Comment thread README.md Outdated
# An optional object which will be used instead of the default renderer
renderer=None,

# An optional dictionary of request header information (such as `Accept-language`)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nitpick: Accept-Language has the L capitalized too

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This could be a good spot to put in a sample dictionary (like props does above).

@BenAtEventbrite BenAtEventbrite merged commit acfe533 into master Apr 5, 2016
@benmvp benmvp deleted the request-headers branch April 5, 2016 22:39
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.

4 participants