We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 084e365 commit 11f2b1dCopy full SHA for 11f2b1d
test/res.location.js
@@ -58,7 +58,7 @@ describe('res', function(){
58
});
59
60
request(app)
61
- .get('/?q=http://google.com\\@apple.com')
+ .get('/?q=http://google.com' + encodeURIComponent('\\@apple.com'))
62
.expect(200)
63
.expect('Location', 'http://google.com\\@apple.com')
64
.end(function (err) {
@@ -68,7 +68,7 @@ describe('res', function(){
68
69
// This ensures that our protocol check is case insensitive
70
71
- .get('/?q=HTTP://google.com\\@apple.com')
+ .get('/?q=HTTP://google.com' + encodeURIComponent('\\@apple.com'))
72
73
.expect('Location', 'HTTP://google.com\\@apple.com')
74
.end(done)
0 commit comments