summaryrefslogtreecommitdiff
path: root/ext/flash/01_http.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-08-24 21:26:57 +0200
committerGitHub <noreply@github.com>2022-08-24 21:26:57 +0200
commitfb1c7b7deacaf9d35cf26c99f46b6354a4420d68 (patch)
tree6a01a935f30dab40b75afd082a0a122a61443d1d /ext/flash/01_http.js
parent348291f5eccfa19fde67e16bc5d706b5f465da09 (diff)
fix(unstable): finish HTTP response for 205 and 304 responses (#15584)
This commit fixes "Deno.serve()" API by making sure that 205 and 304 responses end with "\r\n\r\n".
Diffstat (limited to 'ext/flash/01_http.js')
-rw-r--r--ext/flash/01_http.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/flash/01_http.js b/ext/flash/01_http.js
index 962b22729..4867da161 100644
--- a/ext/flash/01_http.js
+++ b/ext/flash/01_http.js
@@ -140,7 +140,7 @@
// MUST NOT generate a payload in a 205 response.
// indicate a zero-length body for the response by
// including a Content-Length header field with a value of 0.
- str += "Content-Length: 0\r\n";
+ str += "Content-Length: 0\r\n\r\n";
return str;
}