aws-s3-proxy
aws-s3-proxy copied to clipboard
Strip repeated slashes from URL path
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.