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 a "skip http headers" option #554

Merged
merged 2 commits into from
Feb 25, 2021

Conversation

iainbeeston
Copy link
Contributor

Right now if the console or footer options are enabled, then API requests will include extra headers for bullet. These only exist to power the XHR script that's included in HTML pages, which are irrelevant to an API request. At the moment there's no way to disable this, so I've added a new option for it. Because disabling these headers prevents the XHR javascript hooks from working, I've also made the new option prevent the XHR javascript from being added to pages.

As part of this I cleaned up a handful of related tests that test existing behaviour, so I've put those changes in a separate commit.

Before it was ambiguous because the output for the tag was empty.
This also removes the custom javascript used to extract bullet info
from the headers in ajax requests.
@flyerhzm flyerhzm merged commit 33ea6e7 into flyerhzm:master Feb 25, 2021
@iainbeeston
Copy link
Contributor Author

@flyerhzm Is it possible to release a new version of the gem that includes this change?

@flyerhzm
Copy link
Owner

@iainbeeston I have released version 6.1.4

@iainbeeston
Copy link
Contributor Author

Thank you! 🙂

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.

2 participants