128
|
|
|
Dave Cheney |
9 years ago
|
|
|
127
|
|
|
Dave Cheney |
9 years ago
|
|
|
126
|
|
|
Ian Booth |
9 years ago
|
|
|
125
|
|
|
Andrew Wilkins |
9 years ago
|
|
|
124
|
|
|
Dave Cheney |
9 years ago
|
|
|
123
|
|
[r=jameinel],[bug=1314366] This is a fix for this, basically, this code...
http/client.go
func (c *Client) sendRequest(method, URL string, reqReader io.Reader, length int, headers http.Header, expectedStatus []int, logger *log.Logger) (*http.Response, error) {
originally, only returned the body of the response, which meant there was no scope for getting the headers.
Coupled with this code from swift/swift.go
-func (c *Client) HeadObject(containerName, objectName string) (headers http.Header, err error)
the fact that it's creating headers here, masks the fact that they're not originating in the request.
I implemented HEAD in the fake server, mainly because it's the quickest way to test the fix, we don't necessarily need HEAD, but we wanted to proxy the headers returned by the Swift request to downstream clients (specifically ETag / cache-control headers).
|
Kevin McDermott |
9 years ago
|
|
|
122
|
|
|
Horacio Durán |
9 years ago
|
|
|
121
|
|
|
Horacio Durán |
9 years ago
|
|
|
120
|
|
|
Martin Packman |
9 years ago
|
|
|
119
|
|
|
Andrew Wilkins |
9 years ago
|
|
|
118
|
|
|
John Arbash Meinel |
10 years ago
|
|
|
117
|
|
|
Dave Cheney |
10 years ago
|
|
|
116
|
|
|
Martin Packman |
10 years ago
|
|
|
115
|
|
|
Martin Packman |
10 years ago
|
|
|
114
|
|
|
Ian Booth |
10 years ago
|
|
|
113
|
|
|
Dave Cheney |
10 years ago
|
|
|
112
|
|
|
Dave Cheney |
10 years ago
|
|
|
111
|
|
|
Michael Hudson-Doyle |
10 years ago
|
|
|
110
|
|
|
Patrick Sodre |
10 years ago
|
|
|
109
|
|
|
Ian Booth |
10 years ago
|
|
|