Skip to content

Commit

Permalink
Merge pull request #672 from hulufei/master
Browse files Browse the repository at this point in the history
Handling static file requests containing query string
  • Loading branch information
tommy351 committed Jun 10, 2014
2 parents 5c9eaf9 + 72a3208 commit 545abaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var format = Router.prototype.format = function(str){
var last = str.substr(str.length - 1, 1);
if (!last || last === '/') str += 'index.html';

str = str.replace(/\\/g, '/');
str = str.replace(/\\/g, '/').replace(/\?.*$/, '');

return str;
};
Expand Down

0 comments on commit 545abaa

Please sign in to comment.