Skip to content

Commit

Permalink
chore: add comment for the operation
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Tam <master@murasakiakari.moe>
  • Loading branch information
murasakiakari committed Dec 19, 2024
1 parent 4e48f03 commit b3ae69a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ func (a *authorizer) NewAuthenticator(body io.Reader) (Authenticator, io.Reader)
// from the passed body stream.
// When body is seekable, use seek to reset the streams
// cursor to the start.
// If the body is a bytes.Buffer, create a new buffer and perform a shallow copy
// of the original buffer's content to the new one. Use the new buffer for retries.
// Otherwise, copy the stream into a buffer while uploading
// and use the buffers content on retry.
switch body.(type) {
Expand Down

0 comments on commit b3ae69a

Please sign in to comment.