File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ describe('ctx.redirect(url)', () => {
80
80
ctx . header . accept = 'text/html'
81
81
ctx . redirect ( url )
82
82
assert . strictEqual ( ctx . response . header [ 'content-type' ] , 'text/html; charset=utf-8' )
83
- assert . strictEqual ( ctx . body , `Redirecting to <a href=" ${ url } "> ${ url } </a> .` )
83
+ assert . strictEqual ( ctx . body , `Redirecting to ${ url } .` )
84
84
} )
85
85
86
86
it ( 'should escape the url' , ( ) => {
@@ -90,7 +90,7 @@ describe('ctx.redirect(url)', () => {
90
90
ctx . redirect ( url )
91
91
url = escape ( url )
92
92
assert . strictEqual ( ctx . response . header [ 'content-type' ] , 'text/html; charset=utf-8' )
93
- assert . strictEqual ( ctx . body , `Redirecting to <a href=" ${ url } "> ${ url } </a> .` )
93
+ assert . strictEqual ( ctx . body , `Redirecting to ${ url } .` )
94
94
} )
95
95
} )
96
96
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ module.exports = {
309
309
if ( this . ctx . accepts ( 'html' ) ) {
310
310
url = escape ( url )
311
311
this . type = 'text/html; charset=utf-8'
312
- this . body = `Redirecting to <a href=" ${ url } "> ${ url } </a> .`
312
+ this . body = `Redirecting to ${ url } .`
313
313
return
314
314
}
315
315
You can’t perform that action at this time.
0 commit comments