mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
A presigned or browser POST upload answered 204 whatever the form asked. It now honors success_action_redirect and the deprecated redirect field with a 303 whose Location is that URL plus bucket, key and etag query parameters, and ignores a URL S3 cannot interpret, as AWS does. Without a redirect, success_action_status 201 returns the PostResponse XML with the object's absolute Location, 200 an empty body, and 204 or any other value the default. The 201 Location follows the bucket the virtual-host routing chose and the forwarded host and scheme. SigV4Canonicalization.percentEncode now shares uriEncode's byte loop.