{"action":"created","issue":{"url":"https://api.github.com/repos/markfinger/python-react/issues/64","repository_url":"https://api.github.com/repos/markfinger/python-react","labels_url":"https://api.github.com/repos/markfinger/python-react/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/markfinger/python-react/issues/64/comments","events_url":"https://api.github.com/repos/markfinger/python-react/issues/64/events","html_url":"https://github.com/markfinger/python-react/pull/64","id":146088734,"number":64,"title":"Add ability to pass additional request headers to render server","user":{"login":"benmvp","id":5714478,"avatar_url":"https://avatars.githubusercontent.com/u/5714478?v=3","gravatar_id":"","url":"https://api.github.com/users/benmvp","html_url":"https://github.com/benmvp","followers_url":"https://api.github.com/users/benmvp/followers","following_url":"https://api.github.com/users/benmvp/following{/other_user}","gists_url":"https://api.github.com/users/benmvp/gists{/gist_id}","starred_url":"https://api.github.com/users/benmvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benmvp/subscriptions","organizations_url":"https://api.github.com/users/benmvp/orgs","repos_url":"https://api.github.com/users/benmvp/repos","events_url":"https://api.github.com/users/benmvp/events{/privacy}","received_events_url":"https://api.github.com/users/benmvp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-05T19:35:29Z","updated_at":"2016-04-05T21:46:49Z","closed_at":"2016-04-05T21:13:53Z","pull_request":{"url":"https://api.github.com/repos/markfinger/python-react/pulls/64","html_url":"https://github.com/markfinger/python-react/pull/64","diff_url":"https://github.com/markfinger/python-react/pull/64.diff","patch_url":"https://github.com/markfinger/python-react/pull/64.patch"},"body":"At Eventbrite we're building a Node render server to connect with our Django backend. We need to pass the language from Django to Node. The API of the server expects the language to be passed in the request headers as `Accept-Language`.\r\n\r\n`python-react` passes the request header for the `Content-type`, but doesn't provide a facility to add additional request headers. This PR does that. While it is a change to the API, it should be backwards compatible since it's an additional defaulted parameter (`request_headers`). However, I imagine that anyone who has created their own `renderer` would have to update the API so that it accepts this 4th parameter.\r\n\r\nI added a test as well as updated the relevant documentation. We are currently pointing to my fork, but would love for this change to be folded back in and published to NPM.\r\n\r\nLet me know if you need any updates!"},"comment":{"url":"https://api.github.com/repos/markfinger/python-react/issues/comments/205997551","html_url":"https://github.com/markfinger/python-react/pull/64#issuecomment-205997551","issue_url":"https://api.github.com/repos/markfinger/python-react/issues/64","id":205997551,"user":{"login":"markfinger","id":175974,"avatar_url":"https://avatars.githubusercontent.com/u/175974?v=3","gravatar_id":"","url":"https://api.github.com/users/markfinger","html_url":"https://github.com/markfinger","followers_url":"https://api.github.com/users/markfinger/followers","following_url":"https://api.github.com/users/markfinger/following{/other_user}","gists_url":"https://api.github.com/users/markfinger/gists{/gist_id}","starred_url":"https://api.github.com/users/markfinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markfinger/subscriptions","organizations_url":"https://api.github.com/users/markfinger/orgs","repos_url":"https://api.github.com/users/markfinger/repos","events_url":"https://api.github.com/users/markfinger/events{/privacy}","received_events_url":"https://api.github.com/users/markfinger/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T21:46:49Z","updated_at":"2016-04-05T21:46:49Z","body":"That's been pushed to [PyPI](https://pypi.python.org/pypi/react). Thanks again!"}}