node-phpfpm
node-phpfpm copied to clipboard
Cookies, other headers?
Is it possible to forward other headers to PHP, "cookie" for example ?
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.