fix: handle Transfer-Encoding for make bucket

In case of make bucket, there is a chance of Transfer-Encoding is sent
where Content-Length is missing.  This patch fixes the problem by
checking whether Transfer-Encoding: chunked is set along with
Content-Length.
This commit is contained in:
Bala.FA
2016-02-05 16:39:31 +05:30
parent 3a55d05eff
commit d79fcb1800
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -46,3 +46,13 @@ func isMaxObjectSize(size int64) bool {
}
return false
}
func contains(stringList []string, element string) bool {
for _, e := range stringList {
if e == element {
return true
}
}
return false
}