Skip to content

Commit 90932b9

Browse files
harlantwoodaaron-ruby-df
authored andcommitted
Tighten regex (cloudflare#66)
1 parent 3ee3cf4 commit 90932b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

products/workers/src/content/examples/http2-server-push.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const HTML = `
3232

3333
async function handleRequest(request) {
3434
// If request is for test.css, serve the raw CSS
35-
if (/test.css$/.test(request.url)) {
35+
if (/test\.css$/.test(request.url)) {
3636
return new Response(CSS, {
3737
headers: {
3838
"content-type": "text/css",

0 commit comments

Comments
 (0)