aws-s3-proxy icon indicating copy to clipboard operation
aws-s3-proxy copied to clipboard

Strip repeated slashes from URL path

Open ilari-makimattila opened this issue 4 years ago • 0 comments

This will replace the default behavior of redirecting to serving the resource directly. For example for request GET /path//to/file the previous behavior was to respond with 301 Moved Permanently with Location: /path/to/file header. The new behavior is to treat the path as /path/to/file and serve the file immediately.

There are some tools that create URLs by concatenating strings and end up having repeated slashes in the resulting URL. Some of these tools are also not following redirects and end up with an incorrect result. It is by far easier to have the server to support this arguably incorrect behavior than it is to fix these tools.

ilari-makimattila avatar Mar 12 '20 13:03 ilari-makimattila