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

Different behaviour for POST JSON on Mac OSX than Linux #126

Open
antony opened this issue Sep 5, 2016 · 0 comments
Open

Different behaviour for POST JSON on Mac OSX than Linux #126

antony opened this issue Sep 5, 2016 · 0 comments

Comments

@antony
Copy link

antony commented Sep 5, 2016

Hi,

So here's the scenario - I work as part of a team of developers, 3 mac users, and 2 linux users.

We're using RESTClient to POST to an URL as part of our acceptance tests and retrieve some JSON. The receiving server is a locally running NodeJS server running Hapi.

We had a scenario whereby we would get 404 for every post to an URL, even though the url we copy pasted from the exception and put into Postman RESTClient, CURL, etc was valid and returned our JSON payload.

This would only happen on the Mac machines.

After a lot of debugging it turned out that setting the 'Accept' header to 'application/json' made the request work.

But it's strange that this doesn't affect Linux machines, only Mac.

Any ideas?

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

1 participant