pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
339 stars 40 forks source link

Update fetch.py #80

Closed DeadshotLegend closed 1 year ago

DeadshotLegend commented 1 year ago

Adding headers to POST request

pmp-p commented 1 year ago

Thanks for the contribution.

@tank-king please could you have a look and confirm ?

tank-king commented 1 year ago

Looks pretty good to me. Have not tried it yet though because I had issues with this earlier, and therefore I made my own system for handling those systems via js calls. I have incorporated them in scoreunlocked for my Bug-Invaders game.

pmp-p commented 1 year ago

CI has finished rebuilding, Thanks @DeadshotLegend , if you have time it is now possible to add a test_fetch.py into showroom and call it with https://pygame-web.github.io/showroom/pythongit.html?-i#src/test_fetch.py