docs: add sad little bug
This commit is contained in:
@@ -212,6 +212,7 @@ class Scraper(ClientSession):
|
||||
attachment.source_suffix = mimetypes.guess_extension(response.content_type)
|
||||
|
||||
# Content-Disposition 헤더로부터 실제 파일 이름과 확장자 알아내기
|
||||
# FIXME: 이런 개시발 디시에서 헤더 인코딩을 터트려서 보내주는군요 (latin-1?)
|
||||
if response.content_disposition and response.content_disposition.filename:
|
||||
attachment.source_filename = response.content_disposition.filename
|
||||
attachment.source_suffix = Path(attachment.source_filename).suffix
|
||||
|
Reference in New Issue
Block a user