Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 59d350ec677a
Choose a base ref
...
head repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1d0e0948383d
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 1, 2019

  1. applet.audio.yamaha_opx: raise file size limit to 1 MB.

    There are some quite large Touhou VGZ files.
    whitequark committed Oct 1, 2019

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    1d0e094 View commit details
Showing with 4 additions and 2 deletions.
  1. +4 −2 software/glasgow/applet/audio/yamaha_opx/__init__.py
6 changes: 4 additions & 2 deletions software/glasgow/applet/audio/yamaha_opx/__init__.py
Original file line number Diff line number Diff line change
@@ -751,8 +751,10 @@ async def serve_vgm(self, request):
return sock

if ("Content-Length" not in client_resp.headers or
int(client_resp.headers["Content-Length"]) > 131072):
await sock.close(code=2999, message="File too large")
int(client_resp.headers["Content-Length"]) > (1<<20)):
await sock.close(code=2999, message=
"File too large ({} bytes) to be fetched"
.format(client_resp.headers["Content-Length"]))
return sock

vgm_data = await client_resp.read()