Add comment, gateway should validate object name

This commit is contained in:
Remco Verhoef 2017-05-05 18:47:11 -07:00 committed by Harshavardhana
parent 9ac3538141
commit dd5b975001
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ func (api gatewayAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Re
bucket = vars["bucket"]
object = vars["object"]
// TODO: we should validate the object name here
// Get Content-Md5 sent by client and verify if valid
md5Bytes, err := checkValidMD5(r.Header.Get("Content-Md5"))
if err != nil {