Skip to content

Commit

Permalink
Update testserver.py IF self.path.endswith(".html")
Browse files Browse the repository at this point in the history
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: pygame-web/pkg-porting-wasm#3 (comment)
  • Loading branch information
andreagalle authored Sep 26, 2023
1 parent 98cc970 commit 91a27c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygbag/testserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def send_head(self):
print(self.path)
print()

elif path.endswith(".html"):
elif self.path.endswith(".html"):
if VERB:
print("REPLACING", path, CDN, PROXY)
content = f.read()
Expand Down

0 comments on commit 91a27c1

Please sign in to comment.