don't allow other content-type headers

This commit is contained in:
2025-02-02 16:08:11 +00:00
parent 6b788fa16c
commit 302b988bcf
+1 -1
View File
@@ -203,7 +203,7 @@ async function serve_static(request, env) {
}
const blob = await response.blob()
if(url.pathname.endsWith('js')){
headers.append('content-type','text/javascript')
headers.set('content-type','text/javascript')
}
return newResponse(blob)
}