File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ describe('res', function(){
5858 } ) ;
5959
6060 request ( app )
61- . get ( '/?q=http://google.com\\@apple.com' )
61+ . get ( '/?q=http://google.com' + encodeURIComponent ( ' \\@apple.com') )
6262 . expect ( 200 )
6363 . expect ( 'Location' , 'http://google.com\\@apple.com' )
6464 . end ( function ( err ) {
@@ -68,7 +68,7 @@ describe('res', function(){
6868
6969 // This ensures that our protocol check is case insensitive
7070 request ( app )
71- . get ( '/?q=HTTP://google.com\\@apple.com' )
71+ . get ( '/?q=HTTP://google.com' + encodeURIComponent ( ' \\@apple.com') )
7272 . expect ( 200 )
7373 . expect ( 'Location' , 'HTTP://google.com\\@apple.com' )
7474 . end ( done )
You can’t perform that action at this time.
0 commit comments