From 961c9f5ee528d3fe50f6e23845c721f72b68255f Mon Sep 17 00:00:00 2001 From: Florian Prud'homme Date: Sun, 23 Feb 2020 10:20:58 +0100 Subject: [PATCH] support missing status message --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4d47e5d..ea93d37 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ var nextLine = require('next-line') // Status-Line: HTTP-Version SP Status-Code SP Reason-Phrase CRLF var startLine = /^[A-Z_]+(\/\d\.\d)? / var requestLine = /^([A-Z_]+) (.+) [A-Z]+\/(\d)\.(\d)$/ -var statusLine = /^[A-Z]+\/(\d)\.(\d) (\d{3}) (.*)$/ +var statusLine = /^[A-Z]+\/(\d)\.(\d) (\d{3}) *(.*)$/ module.exports = function (data, onlyHeaders) { return parse(normalize(data), onlyHeaders)