api: Set content-encoding properly if set. (#2245)

Additionally don't set content-type if not present, golang http
server automaticaly handles this and sets it automatically.
This commit is contained in:
Harshavardhana
2016-07-20 12:40:20 -07:00
committed by GitHub
parent 18728a0b59
commit c1e953b368
5 changed files with 34 additions and 14 deletions
+1
View File
@@ -584,6 +584,7 @@ func (fs fsObjects) listObjects(bucket, prefix, marker, delimiter string, maxKey
Name: fileInfo.Name,
ModTime: fileInfo.ModTime,
Size: fileInfo.Size,
MD5Sum: fileInfo.MD5Sum,
IsDir: false,
})
}