Skip to content

Commit b8469a3

Browse files
author
deiu
committed
Only redirect to warp if the resource is a container
1 parent 0334087 commit b8469a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/handlers/get.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function get(req, res, includeBody) {
116116
}
117117

118118
// redirect to file browser if we got text/html with highest priority
119-
if (res.acceptTypes.indexOf('text/html') === 0) {
119+
if (container && res.acceptTypes.indexOf('text/html') === 0) {
120120
return res.redirect(303, browseSkin + req.protocol + '/' + req.get('host') + req.originalUrl);
121121
}
122122

0 commit comments

Comments
 (0)