mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 12:40:19 +01:00
ISSUE-242 fix head/get
This commit is contained in:
parent
9355bab9d4
commit
c072345869
1 changed files with 2 additions and 2 deletions
|
@ -151,7 +151,7 @@ func (s *S3Storage) Head(token string, filename string) (contentType string, con
|
|||
}
|
||||
|
||||
// content type , content length
|
||||
_, response := s.s3.HeadObjectRequest(headRequest)
|
||||
response, err := s.s3.HeadObject(headRequest)
|
||||
|
||||
if response.ContentType != nil {
|
||||
contentType = *response.ContentType
|
||||
|
@ -187,7 +187,7 @@ func (s *S3Storage) Get(token string, filename string) (reader io.ReadCloser, co
|
|||
Key: aws.String(key),
|
||||
}
|
||||
|
||||
_, response := s.s3.GetObjectRequest(getRequest)
|
||||
response, err := s.s3.GetObject(getRequest)
|
||||
|
||||
if response.ContentType != nil {
|
||||
contentType = *response.ContentType
|
||||
|
|
Loading…
Reference in a new issue