Browse Source

Usa buffer inteiro p python-magic ao exportar do zope

pull/2408/head
Marcio Mazza 6 years ago
parent
commit
d49ad30e11
  1. 2
      sapl/legacy/scripts/exporta_zope/exporta_zope.py

2
sapl/legacy/scripts/exporta_zope/exporta_zope.py

@ -93,7 +93,7 @@ def br(obj):
def guess_extension(fullname, buffer):
# um corte de apenas 1024 impediu a detecção correta de .docx
mime = magic.from_buffer(buffer[:4096], mime=True)
mime = magic.from_buffer(buffer, mime=True)
extensao = EXTENSOES.get(mime)
if extensao is not None:
return extensao

Loading…
Cancel
Save