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
Of course that's a silly way of writting URL. In addition, URI's RFC (http://www.ietf.org/rfc/rfc2396.txt) describe the identifier as single slash. So current behaviour is correct. But that's a common practice in web server to just ignore strings of slash.
I think vibe should exhibit the same behavior for different reasons:
Better compatibility with existing software;
Users will expect this;
Expecting server/path/to/file and server//path/to/file to serve different content is plain wrong;
Current behavior makes URL rewritting slightly more painful (that's how I ran into it).
And as a bonus, a little bug I found along the way:
Treating "///test///", or even "/././test//" the same as "/test/" in the URLRouter would considerably increase the complexity of the match algorithm and all browsers that I've tested perform path normalization before sending the final request, so I'd treat this as a low priority issue
In case of serving files, though, the behavior should be as expected and ""/"."/".." are correctly resolved
The "Empty path entries not..." error is fixed now by the above commit
Hi,
Using the test application, this works:
=> Same result, as expected.
But given the following code:
Those behaves differently:
Of course that's a silly way of writting URL. In addition, URI's RFC (http://www.ietf.org/rfc/rfc2396.txt) describe the identifier as single slash. So current behaviour is correct. But that's a common practice in web server to just ignore strings of slash.
I think vibe should exhibit the same behavior for different reasons:
And as a bonus, a little bug I found along the way:
Throws:
The text was updated successfully, but these errors were encountered: