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

How to set Accept-Encoding: gzip #412

Closed
Vacilando opened this issue Dec 27, 2020 · 1 comment
Closed

How to set Accept-Encoding: gzip #412

Vacilando opened this issue Dec 27, 2020 · 1 comment

Comments

@Vacilando
Copy link

https://www.mediawiki.org/wiki/API:Etiquette#Request_limit recommends to set Accept-Encoding: gzip

Is there a way to do it using wtf.fetch()?
Can the third parameter - an object containing e.g. Api-User-Agent (cf https://github.com/spencermountain/wtf_wikipedia#good-practice) contain also Accept-Encoding: gzip?

@spencermountain
Copy link
Owner

hi Tomáš - yes of course. This is a good idea.
I need to clean-up this http interface a bit, and am not good at this stuff - Let me merge this into #410
any help here is appreciated.

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