Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Process request custom headers #32

Closed
ert78gb opened this issue Feb 7, 2017 · 1 comment
Closed

Process request custom headers #32

ert78gb opened this issue Feb 7, 2017 · 1 comment
Labels
Milestone

Comments

@ert78gb
Copy link

ert78gb commented Feb 7, 2017

Description

The emulator is not process the custom headers from the request. The GCloud Functions is processes additional headers successful.

Steps to reproduce

  1. create a function with console.log(JSON.stringify(req.headers)); command
  2. deploy the function
  3. call the function curl -X POST -H "Content-Type:application/json" -H "x-api-key: any" http://localhost:xx/end-point path -d '{"email": "[email protected]", "message":"test message" }'
  4. check logs. functions logs read The x-api-key is missing. Only contains: {"host":"127.0.0.1:57515","accept-encoding":"gzip, deflate","user-agent":"node-superagent/3.4.1","content-type":"application/json","content-length":"53","connection":"close"} The x-api-key is missing
    <steps_to_reproduce>

Thanks!

@jmdobry jmdobry self-assigned this Feb 12, 2017
@jmdobry jmdobry added the bug label Feb 12, 2017
@ert78gb
Copy link
Author

ert78gb commented Feb 13, 2017

thx, but I have not tested yet ;)

@jmdobry jmdobry added this to the 1.0.0 milestone Mar 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants