1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00

Merge branch 'ISSUE-242' of https://github.com/dutchcoders/transfer.sh into ISSUE-242

This commit is contained in:
Alexander Lauster 2019-06-23 15:59:37 +02:00
commit 6e03965c8b

View File

@ -151,7 +151,7 @@ func (s *S3Storage) Head(token string, filename string) (contentType string, con
} }
// content type , content length // content type , content length
_, response := s.s3.HeadObjectRequest(headRequest) response, err := s.s3.HeadObject(headRequest)
if response.ContentType != nil { if response.ContentType != nil {
contentType = *response.ContentType contentType = *response.ContentType
@ -187,7 +187,7 @@ func (s *S3Storage) Get(token string, filename string) (reader io.ReadCloser, co
Key: aws.String(key), Key: aws.String(key),
} }
_, response := s.s3.GetObjectRequest(getRequest) response, err := s.s3.GetObject(getRequest)
if response.ContentType != nil { if response.ContentType != nil {
contentType = *response.ContentType contentType = *response.ContentType