Skip to content

Commit 9c8c9a1

Browse files
thentgesMindeefharper
authored andcommitted
fix: 🗑️ using new headers format for API token
1 parent 1c1573e commit 9c8c9a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mindee/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def request(url, input_file, token, include_words=False):
1313

1414
files = {"document": input_file.file_object.read()}
1515

16-
headers = {"X-Inferuser-Token": token}
16+
headers = {"Authorization": f"Token {token}"}
1717

1818
params = {}
1919
if include_words:

0 commit comments

Comments
 (0)