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

When possible, set the Accept header appropriately #542

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

candrews
Copy link

@candrews candrews commented Apr 5, 2021

When the transport supports doing so, set the "Accept" request header to
an appropriate value. Doing so informs the server what type of response
the client is expecting.

Closes #540

When the transport supports doing so, set the "Accept" request header to
an appropriate value. Doing so informs the server what type of response
the client is expecting.
@candrews
Copy link
Author

candrews commented Apr 5, 2021

The failing test is because the test doesn't have access to Travis secure variables:

elif [ "${TRAVIS_SECURE_ENV_VARS}" = "true" ]; then

It would pass if run by the main sockjs-client repo.

@candrews
Copy link
Author

candrews commented May 3, 2021

@brycekahle can you please take a look at this PR?

@brycekahle
Copy link
Contributor

@candrews Apologies. I'll take a look at this soon. I just need to verify the Accept values are valid in all cases.

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.

Set Accept header for XHR requests
2 participants