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

Redirecting POST not working #6

Open
jazarja opened this issue Jan 22, 2016 · 1 comment
Open

Redirecting POST not working #6

jazarja opened this issue Jan 22, 2016 · 1 comment

Comments

@jazarja
Copy link

jazarja commented Jan 22, 2016

I'm trying to redirect POST request using requestProxy, but couldn't make it work.

Here is my code

router.post('/api/v1/device/register',
    requestProxy({
         url: "http://localhost:3000/api/v1/user/activation"
    }));

Request log

POST /api/v1/device/register 408 5449.497 ms - 975
POST /api/v1/user/activation 400 5455.902 ms - 605

I don't know why the destination url serving HTTP error 400. Please help.

@dvonlehman
Copy link
Owner

Hello sorry, for the belated reply. See #9 (comment)

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