mirror of
https://github.com/minio/minio.git
synced 2025-11-13 15:21:36 -05:00
listObjects: Channel based changes.
Supports: - prefixes - marker
This commit is contained in:
@@ -126,16 +126,17 @@ var ignoredHeaders = map[string]bool{
|
||||
}
|
||||
|
||||
func (s *MyAPIFSCacheSuite) newRequest(method, urlStr string, contentLength int64, body io.ReadSeeker) (*http.Request, error) {
|
||||
if method == "" {
|
||||
method = "POST"
|
||||
}
|
||||
t := time.Now().UTC()
|
||||
|
||||
req, err := http.NewRequest(method, urlStr, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
req.Header.Set("x-amz-date", t.Format(iso8601Format))
|
||||
if method == "" {
|
||||
method = "POST"
|
||||
}
|
||||
|
||||
// add Content-Length
|
||||
req.ContentLength = contentLength
|
||||
|
||||
Reference in New Issue
Block a user