File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -482,8 +482,7 @@ SendStream.prototype.redirect = function redirect (path) {
482
482
}
483
483
484
484
var loc = encodeUrl ( collapseLeadingSlashes ( this . path + '/' ) )
485
- var doc = createHtmlDocument ( 'Redirecting' , 'Redirecting to <a href="' + escapeHtml ( loc ) + '">' +
486
- escapeHtml ( loc ) + '</a>' )
485
+ var doc = createHtmlDocument ( 'Redirecting' , 'Redirecting to ' + escapeHtml ( loc ) )
487
486
488
487
// redirect
489
488
res . statusCode = 301
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ describe('send(file).pipe(res)', function () {
358
358
. get ( '/pets' )
359
359
. expect ( 'Location' , '/pets/' )
360
360
. expect ( 'Content-Type' , / h t m l / )
361
- . expect ( 301 , / > R e d i r e c t i n g t o < a h r e f = " \/ p e t s \/ " > \/ p e t s \/ < \/ a > < / , done )
361
+ . expect ( 301 , / > R e d i r e c t i n g t o \/ p e t s \/ < / , done )
362
362
} )
363
363
364
364
it ( 'should respond with default Content-Security-Policy' , function ( done ) {
@@ -386,7 +386,7 @@ describe('send(file).pipe(res)', function () {
386
386
. get ( '/snow' )
387
387
. expect ( 'Location' , '/snow%20%E2%98%83/' )
388
388
. expect ( 'Content-Type' , / h t m l / )
389
- . expect ( 301 , / > R e d i r e c t i n g t o < a h r e f = " \/ s n o w % 2 0 % E 2 % 9 8 % 8 3 \/ " > \/ s n o w % 2 0 % E 2 % 9 8 % 8 3 \/ < \/ a > < / , done )
389
+ . expect ( 301 , / > R e d i r e c t i n g t o \/ s n o w % 2 0 % E 2 % 9 8 % 8 3 \/ < / , done )
390
390
} )
391
391
} )
392
392
You can’t perform that action at this time.
0 commit comments