Merge pull request #66 from KirillovDenis/feature/65-content-type_support

[#65] Supported object Content-Type
This commit is contained in:
Roman Khimov 2021-06-21 19:23:03 +03:00 committed by GitHub
commit c2f8d60798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,6 +141,8 @@ func (r *request) receiveFile(clnt client.Object, objectAddress *object.Address)
}
r.Response.Header.Set("Last-Modified",
time.Unix(value, 0).Format(time.RFC1123))
case object.AttributeContentType:
writer.contentType = val
}
}
r.Response.Header.Set("x-object-id", obj.ID().String())