Ver a proveniência

gdrive: add mime-type correctly

pull/294/head
Stefan Benten há 4 anos
ascendente
cometimento
d3af6ad6e8
1 ficheiros alterados com 2 adições e 2 eliminações
  1. +2
    -2
      server/storage/gdrive.go

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

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