From fb1c7b7deacaf9d35cf26c99f46b6354a4420d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 24 Aug 2022 21:26:57 +0200 Subject: 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". --- ext/flash/01_http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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; } -- cgit v1.2.3