Skip to content

Commit

Permalink
Fix fanout response unmarshalable error type (#1839)
Browse files Browse the repository at this point in the history
Type `error` cannot be JSON unmarshaled, so it should not be used in responses.

Change the type to a  string.
  • Loading branch information
klauspost committed Jun 15, 2023
1 parent 1d018af commit 1685fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-put-object-fan-out.go
Expand Up @@ -62,7 +62,7 @@ type PutObjectFanOutResponse struct {
ETag string `json:"etag,omitempty"`
VersionID string `json:"versionId,omitempty"`
LastModified *time.Time `json:"lastModified,omitempty"`
Error error `json:"error,omitempty"`
Error string `json:"error,omitempty"`
}

// PutObjectFanOut - is a variant of PutObject instead of writing a single object from a single
Expand Down

0 comments on commit 1685fd8

Please sign in to comment.