Skip to content

Commit 7ff270f

Browse files
committed
fix unpack from_file/from_buffer headers arg
1 parent 064b1ea commit 7ff270f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tika/unpack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
_text_wrapper = TextIOWrapper if version_info.major >= 3 else lambda x: x
3131

3232

33-
def from_file(filename, serverEndpoint=ServerEndpoint, headers=None, requestOptions={}):
33+
def from_file(filename, serverEndpoint=ServerEndpoint, requestOptions={}):
3434
'''
3535
Parse from file
3636
:param filename: file
@@ -45,7 +45,7 @@ def from_file(filename, serverEndpoint=ServerEndpoint, headers=None, requestOpti
4545
return _parse(tarOutput)
4646

4747

48-
def from_buffer(string, serverEndpoint=ServerEndpoint, requestOptions={}):
48+
def from_buffer(string, serverEndpoint=ServerEndpoint, headers=None, requestOptions={}):
4949
'''
5050
Parse from buffered content
5151
:param string: buffered content

0 commit comments

Comments
 (0)