소스 검색

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

tags/v1.1.0
Alexander Lauster 4 년 전
부모
커밋
6e03965c8b
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


불러오는 중...
취소
저장