Skip to content

Commit 81cf189

Browse files
author
Jim Barton
committed
Fixed rfc6266; now always returns a string, so this module can just use
it.
1 parent 6757978 commit 81cf189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tika/tika.py

+1-1
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)).decode('ascii')
83+
return build_header(os.path.basename(fn))
8484
except ImportError:
8585
def make_content_disposition_header(fn):
8686
return 'attachment; filename=%s' % os.path.basename(fn)

0 commit comments

Comments
 (0)