You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code: if ((lowercaseUrl.indexOf('.js', req.url.length - 3) !== -1) || (lowercaseUrl.indexOf('.css', req.url.length - 4) !== -1)) {
won't work if there are query params after the js/css path.
Am I missing something?
The text was updated successfully, but these errors were encountered:
Yes - that looks like it doesn't manage querystrings at all.
Maybe it's time to parse lowercaseUrl with require('querystring')
happy to take a PR with tests for your scenario if you are up for it?
This code:
if ((lowercaseUrl.indexOf('.js', req.url.length - 3) !== -1) || (lowercaseUrl.indexOf('.css', req.url.length - 4) !== -1)) {
won't work if there are query params after the js/css path.
Am I missing something?
The text was updated successfully, but these errors were encountered: