Skip to content

Commit

Permalink
Fix expect header value to '100-continue' (#4722)
Browse files Browse the repository at this point in the history
  • Loading branch information
shichanglin5 authored Feb 14, 2023
1 parent d0700c1 commit 8e62f0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/s3/platform_handlers_go1.6.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ func add100Continue(r *request.Request) {
return
}

r.HTTPRequest.Header.Set("Expect", "100-Continue")
r.HTTPRequest.Header.Set("Expect", "100-continue")
}
2 changes: 1 addition & 1 deletion service/s3/platform_handlers_go1.6_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAdd100Continue_Added(t *testing.T) {
if err != nil {
t.Errorf("expected no error, but received %v", err)
}
if e, a := "100-Continue", r.HTTPRequest.Header.Get("Expect"); e != a {
if e, a := "100-continue", r.HTTPRequest.Header.Get("Expect"); e != a {
t.Errorf("expected %s, but received %s", e, a)
}
}
Expand Down

0 comments on commit 8e62f0a

Please sign in to comment.