Skip to content

Return FilePut request construction errors - #51

Open
dajiaohuang wants to merge 1 commit into
rhnvrm:masterfrom
dajiaohuang:fix/fileput-request-error
Open

dajiaohuang wants to merge 1 commit into
rhnvrm:masterfrom
dajiaohuang:fix/fileput-request-error

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

FilePut now returns the error from http.NewRequest when request construction fails. A regression test uses an invalid endpoint and a valid seekable body to cover the prior nil-error result.

Fixes #50.

Verification

  • go test -run '^TestFilePutReturnsRequestConstructionError$' ./... — passed.
  • git diff --check — passed.
  • The repository workflow's full MinIO-backed test command was not run locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FilePut returns no error when request URL is invalid

1 participant