Merge pull request #66 from KirillovDenis/feature/65-content-type_support
[#65] Supported object Content-Type
This commit is contained in:
commit
c2f8d60798
1 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue