Skip to content

Commit c1f12ed

Browse files
committed
fix #224
1 parent 526c9e6 commit c1f12ed

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"sessionId":"a3b3d6c1-4de8-4685-adac-9a1a629538d6","pid":22723,"acquiredAt":1776755137484}

standalone/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cap-standalone",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"keywords": [
55
"algorithm",
66
"anti-abuse",
@@ -42,7 +42,7 @@
4242
"scripts": {
4343
"test": "echo \"Error: no test specified\" && exit 1",
4444
"dev": "bun run --watch src/index.js",
45-
"docker:publish": "docker buildx build --platform linux/amd64,linux/arm64 -t tiago2/cap:3.0.1 -t tiago2/cap:3.0 -t tiago2/cap:3 -t tiago2/cap:latest . --push"
45+
"docker:publish": "docker buildx build --platform linux/amd64,linux/arm64 -t tiago2/cap:3.0.3 -t tiago2/cap:3.0 -t tiago2/cap:3 -t tiago2/cap:latest . --push"
4646
},
4747
"dependencies": {
4848
"@elysiajs/cors": "^1.4.1",

standalone/src/static.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const publicStatic = new Elysia().get(
5353
? "public, max-age=86400"
5454
: "private, max-age=3600";
5555
set.headers["X-Content-Type-Options"] = "nosniff";
56+
set.headers["Content-Type"] = f.type || "application/octet-stream";
5657

5758
return new Response(f);
5859
},

0 commit comments

Comments
 (0)