-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Bug report
Describe the bug
Works in editor, not when exported to html5 and uploaded in godot.
The way to fix this is to find everywhere you are making HTTP requests in the addon, and set accept_gzip to false.
For my application I had to do this as this was the only part of the addon I was using
func push_request(httprequest : HTTPRequest) -> void:
reference()
httprequest.accept_gzip = false
httprequest.request_completed.connect(_on_task_completed.bind(httprequest))
httprequest.request(_endpoint, _headers, _method, _payload)
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- setup a basic get request from a table
- observe it working in editor
- export to html5
- upload to itch.io and you'll see console errors
Expected behavior
continues to work when export is hosted on itch. The manual fix shared above is easy enough to implement per project so if you've experienced the same issue and found this I recommend fixing that way. Could be nice to have this documented better or some kind of feature flagging so users don't need to go into addons and edit the source