diff --git a/index.js b/index.js
index 89afd7e..768f8ca 100644
--- a/index.js
+++ b/index.js
@@ -482,8 +482,7 @@ SendStream.prototype.redirect = function redirect (path) {
}
var loc = encodeUrl(collapseLeadingSlashes(this.path + '/'))
- var doc = createHtmlDocument('Redirecting', 'Redirecting to ' +
- escapeHtml(loc) + '')
+ var doc = createHtmlDocument('Redirecting', 'Redirecting to ' + escapeHtml(loc))
// redirect
res.statusCode = 301
diff --git a/test/send.js b/test/send.js
index d419f8f..7fa9dd7 100644
--- a/test/send.js
+++ b/test/send.js
@@ -358,7 +358,7 @@ describe('send(file).pipe(res)', function () {
.get('/pets')
.expect('Location', '/pets/')
.expect('Content-Type', /html/)
- .expect(301, />Redirecting to \/pets\/<\/a>, done)
+ .expect(301, />Redirecting to \/pets\/, done)
})
it('should respond with default Content-Security-Policy', function (done) {
@@ -386,7 +386,7 @@ describe('send(file).pipe(res)', function () {
.get('/snow')
.expect('Location', '/snow%20%E2%98%83/')
.expect('Content-Type', /html/)
- .expect(301, />Redirecting to \/snow%20%E2%98%83\/<\/a>, done)
+ .expect(301, />Redirecting to \/snow%20%E2%98%83\/, done)
})
})