Node.js: fixed "httpVersion" variable format

According to the Node.js documenation this variable
should only include numbering scheme.

Thanks to @dbit-xia.

Closes: https://github.com/nginx/unit/issues/1085
This commit is contained in:
Andrei Zeliankou
2024-01-25 12:49:47 +00:00
committed by andrey-zelenkov
parent ba56e50ee7
commit 6452ca111c
3 changed files with 15 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ def test_node_application_variables(date_to_sec_epoch, sec_epoch):
'Request-Method': 'POST',
'Request-Uri': '/',
'Http-Host': 'localhost',
'Server-Protocol': 'HTTP/1.1',
'Server-Protocol': '1.1',
'Custom-Header': 'blah',
}, 'headers'
assert resp['body'] == body, 'body'