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

Added Accept header to all requests #8

Closed
wants to merge 2 commits into from
Closed

Added Accept header to all requests #8

wants to merge 2 commits into from

Conversation

Jandella
Copy link

While I was testing the library on address https://mtconnect.mazakcorp.com:5612, I received a null document.
Upon debugging, I found the response was in json format instead xml.

Adding the accept header to receive a xml response resolved the issue.

Copy link
Contributor

@PatrickRitchie PatrickRitchie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It looks like everything is correct. Sorry for the long delay.

@Jandella
Copy link
Author

Jandella commented Feb 5, 2020

No prob ;)

@Jandella Jandella closed this Jan 4, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants