1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-07-14 09:44:16 +02:00

[#6654] fixed S3 canonical uri parts escaping

This commit is contained in:
Gani Georgiev
2025-03-28 19:28:04 +02:00
parent d68786df9c
commit b5be7f2d3c
8 changed files with 201 additions and 26 deletions

View File

@ -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))