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

Cookies, other headers? #4

Open
edgework opened this issue Nov 28, 2016 · 1 comment
Open

Cookies, other headers? #4

edgework opened this issue Nov 28, 2016 · 1 comment

Comments

@edgework
Copy link

Is it possible to forward other headers to PHP, "cookie" for example ?

@starfishmod
Copy link

starfishmod commented Feb 22, 2017

I believe this could be done easily with a small fix to phpfpm.prototype.run

by changing

var fastcgiParams = info.fastcgiParams || {
		QUERY_STRING: info.queryString || '',
...
}

into

var fastcgiParams = Object.assign(info.fastcgiParams, {
		QUERY_STRING: info.queryString || '',
...
})

you could pass the cookies using HTTP_Cookie (and other header) to the run options.

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

No branches or pull requests

2 participants