Tests: Replace space with dash in header name

Node.js has forbidden header names with spaces in
6192c9892f.

The next error is thrown when the test sets the "some header" header:
Uncaught TypeError: Header name must be a valid HTTP Token ["some header"]

To fix it, replace spaces with dashes.
This commit is contained in:
Rob Wu
2016-02-19 00:32:37 +01:00
parent 8568c06b17
commit bbe3378c35
3 changed files with 6 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ nock('http://example.com')
.get('/redirecttarget')
.reply(200, 'redirect target', {
'Some header': 'value'
'Some-header': 'value'
})
.head('/redirect')