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 @@ -195,8 +195,7 @@ function createRedirectDirectoryListener () {
195
195
196
196
// reformat the URL
197
197
var loc = encodeUrl ( url . format ( originalUrl ) )
198
- var doc = createHtmlDocument ( 'Redirecting' , 'Redirecting to <a href="' + escapeHtml ( loc ) + '">' +
199
- escapeHtml ( loc ) + '</a>' )
198
+ var doc = createHtmlDocument ( 'Redirecting' , 'Redirecting to ' + escapeHtml ( loc ) )
200
199
201
200
// send redirect response
202
201
res . statusCode = 301
Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ describe('serveStatic()', function () {
483
483
request ( server )
484
484
. get ( '/users' )
485
485
. expect ( 'Location' , '/users/' )
486
- . expect ( 301 , / < a h r e f = " \/ u s e r s \/ " > / , done )
486
+ . expect ( 301 , / \/ u s e r s \/ / , done )
487
487
} )
488
488
489
489
it ( 'should redirect directories with query string' , function ( done ) {
@@ -505,7 +505,7 @@ describe('serveStatic()', function () {
505
505
. get ( '/snow' )
506
506
. expect ( 'Location' , '/snow%20%E2%98%83/' )
507
507
. expect ( 'Content-Type' , / h t m l / )
508
- . 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 )
508
+ . 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 )
509
509
} )
510
510
511
511
it ( 'should respond with default Content-Security-Policy' , function ( done ) {
You can’t perform that action at this time.
0 commit comments