Skip to content

Commit 6757978

Browse files
author
Jim Barton
committed
The build_header() calls returns bytes; decode them into ascii for use.
1 parent fe87a2a commit 6757978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tika/tika.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
try:
8181
from rfc6266 import build_header
8282
def make_content_disposition_header(fn):
83-
return build_header(os.path.basename(fn))
83+
return build_header(os.path.basename(fn)).decode('ascii')
8484
except ImportError:
8585
def make_content_disposition_header(fn):
8686
return 'attachment; filename=%s' % os.path.basename(fn)

0 commit comments

Comments
 (0)