1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
6a5ac1d7d1 docs: add gorgeous llicense 2025-08-04 15:15:18 +09:00
dd3315b067 docs: add sad little bug 2025-08-04 15:09:53 +09:00
2 changed files with 14 additions and 0 deletions

13
COPYING Normal file
View File

@@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

View File

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