Test that redirect headers are not set in response

This commit is contained in:
Rob Wu
2015-05-06 20:00:05 +02:00
parent b5d601f823
commit d437bc9225
2 changed files with 15 additions and 15 deletions

View File

@@ -59,6 +59,7 @@ nock('http://example.com')
.get('/redirect')
.reply(302, 'redirecting...', {
'header at redirect': 'should not be here',
'Location': '/redirecttarget'
})