Merge pull request #483 from harshavardhana/pr_out_memory_now_handles_submitting_large_files_fixes_482

This commit is contained in:
Harshavardhana
2015-04-24 15:25:38 -07:00
4 changed files with 86 additions and 17 deletions

View File

@@ -169,6 +169,10 @@ func (server *minioAPI) putObjectHandler(w http.ResponseWriter, req *http.Reques
{
writeErrorResponse(w, req, BadDigest, acceptsContentType, req.URL.Path)
}
case drivers.EntityTooLarge:
{
writeErrorResponse(w, req, EntityTooLarge, acceptsContentType, req.URL.Path)
}
case drivers.InvalidDigest:
{
writeErrorResponse(w, req, InvalidDigest, acceptsContentType, req.URL.Path)