mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-25 14:30:24 +01:00
[#6654] fixed S3 canonical uri parts escaping
This commit is contained in:
1 parent
d68786df9c
commit
b5be7f2d3c
8 files changed
+201
-26
No files matched your search
@@ -6,6 +6,8 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
var _ error = (*ResponseError)(nil)
|
||||
|
||||
// ResponseError defines a general S3 response error.
|
||||
//
|
||||
// https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
|
||||
@@ -20,7 +22,7 @@ type ResponseError struct {
|
||||
}
|
||||
|
||||
// Error implements the std error interface.
|
||||
func (err ResponseError) Error() string {
|
||||
func (err *ResponseError) Error() string {
|
||||
var strBuilder strings.Builder
|
||||
|
||||
strBuilder.WriteString(strconv.Itoa(err.Status))
|
||||
|
||||
Reference in new issue
Block a user