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 testserver.py IF self.path.endswith(".html") #117

Closed andreagalle closed 1 year ago

andreagalle commented 1 year ago

Not to skip anytime this branch in the IF/ELIF statemements. This issue (that is a bug) was casing not properly setting for example the CORS response headers, causing issues retrieving *.js resources as reported here: https://github.com/pygame-web/pkg-porting-wasm/issues/3#issuecomment-1734631597