File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,7 @@ function createRedirectDirectoryListener () {
195195
196196 // reformat the URL
197197 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 ) )
200199
201200 // send redirect response
202201 res . statusCode = 301
Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ describe('serveStatic()', function () {
483483 request ( server )
484484 . get ( '/users' )
485485 . 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 )
487487 } )
488488
489489 it ( 'should redirect directories with query string' , function ( done ) {
@@ -505,7 +505,7 @@ describe('serveStatic()', function () {
505505 . get ( '/snow' )
506506 . expect ( 'Location' , '/snow%20%E2%98%83/' )
507507 . 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 )
509509 } )
510510
511511 it ( 'should respond with default Content-Security-Policy' , function ( done ) {
You can’t perform that action at this time.
0 commit comments