Преглед на файлове

ISSUE-242 fix head/get

tags/v1.1.0
Andrea Spacca преди 4 години
родител
ревизия
c072345869
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      server/storage.go

+ 2
- 2
server/storage.go Целия файл

@@ -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


Зареждане…
Отказ
Запис