Ver código fonte

gdrive: add mime-type correctly

pull/294/head
Stefan Benten 4 anos atrás
pai
commit
d3af6ad6e8
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      server/storage/gdrive.go

+ 2
- 2
server/storage/gdrive.go Ver arquivo

@@ -95,7 +95,7 @@ func (s *GDrive) Get(token string, filename string) (reader io.ReadCloser, metad
}

metadata = Metadata{
ContentType: "",
ContentType: fi.MimeType,
ContentLength: fi.Size,
Downloads: downloads,
MaxDownloads: maxdownloads,
@@ -142,7 +142,7 @@ func (s *GDrive) Head(token string, filename string) (metadata Metadata, err err
}

metadata = Metadata{
ContentType: "",
ContentType: fi.MimeType,
ContentLength: fi.Size,
Downloads: downloads,
MaxDownloads: maxdownloads,


Carregando…
Cancelar
Salvar