Skip to content

Commit 7a4ef88

Browse files
authored
Merge branch 'master' into retry-get-on-unexpected-eof
2 parents 07999a7 + ab5d074 commit 7a4ef88

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ds3/models/ds3Response.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package models
22

33
import (
44
"io"
5-
"strings"
65
"net/http"
76
)
87

@@ -29,13 +28,10 @@ func (wrappedHttpResponse *WrappedHttpResponse) Body() io.ReadCloser {
2928
}
3029

3130
func (wrappedHttpResponse *WrappedHttpResponse) Header() *http.Header {
32-
// The HTTP spec says headers keys are case insensitive, so we'll just
33-
// to lower them before processing the response so we can always get the
34-
// right thing.
3531
result := make(http.Header)
3632
header := wrappedHttpResponse.rawResponse.Header
3733
for k, v := range header {
38-
result[strings.ToLower(k)] = v
34+
result[k] = v
3935
}
4036
return &result
4137
}

0 commit comments

Comments
 (0)