stackvana / hook.io

Open-Source Microservice Hosting Platform
https://hook.io
Other
1.27k stars 119 forks source link

hook.req.method is always "POST" #168

Closed berak closed 7 years ago

berak commented 8 years ago

https://hook.io/berak/test_get


module['exports'] = function datastoreExample (hook) {
  hook.res.end(hook.req.method);
};

Marak commented 8 years ago

Yeah, that is a mistake @ https://github.com/bigcompany/run-remote-service/blob/master/index.js#L22

From what I can remember, there was a reason I switched all reverse proxied requests to use post internally.

I'll investigate a little and make sure we get the HTTP method preserved inside the context of the hook service.

reimertz commented 8 years ago

@Marak this still seems to be an issue.

zanona commented 8 years ago

Is there any workaround currently so we can only accept POST requests?

Marak commented 7 years ago

Should be resolved in production ( for good ).