fix s3 ListAllMyBucketsResult to work with s3cmd

This commit is contained in:
Chris Lu
2019-01-02 11:36:29 -08:00
parent 43db7ac123
commit 3339325334
3 changed files with 20 additions and 20 deletions

View File

@@ -77,6 +77,7 @@ func writeResponse(w http.ResponseWriter, statusCode int, response []byte, mType
}
w.WriteHeader(statusCode)
if response != nil {
glog.V(4).Infof("status %d %s: %s", statusCode, mType, string(response))
w.Write(response)
w.(http.Flusher).Flush()
}