diff --git a/index.js b/index.js
index 1c1bb46..1bee463 100644
--- a/index.js
+++ b/index.js
@@ -194,8 +194,7 @@ function createRedirectDirectoryListener () {
// reformat the URL
var loc = encodeUrl(url.format(originalUrl))
- var doc = createHtmlDocument('Redirecting', 'Redirecting to ' +
- escapeHtml(loc) + '')
+ var doc = createHtmlDocument('Redirecting', 'Redirecting to ' + escapeHtml(loc))
// send redirect response
res.statusCode = 301
diff --git a/test/test.js b/test/test.js
index 2603568..6984bcd 100644
--- a/test/test.js
+++ b/test/test.js
@@ -483,7 +483,7 @@ describe('serveStatic()', function () {
request(server)
.get('/users')
.expect('Location', '/users/')
- .expect(301, //, done)
+ .expect(301, /\/users\//, done)
})
it('should redirect directories with query string', function (done) {
@@ -505,7 +505,7 @@ describe('serveStatic()', 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)
})
it('should respond with default Content-Security-Policy', function (done) {