aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-11-03 19:23:23 -0700
committerBryan Newbold <bnewbold@archive.org>2021-11-03 19:23:23 -0700
commit774a1e3eb989a3fb78485b53c7d0cd4af10a8d8f (patch)
treee5c1acdbccc4d178258d4352f2e20a788e9280ec /python
parent761c45c51ba1ff4a1214bd9e048ea4d45110888b (diff)
downloadsandcrawler-774a1e3eb989a3fb78485b53c7d0cd4af10a8d8f.tar.gz
sandcrawler-774a1e3eb989a3fb78485b53c7d0cd4af10a8d8f.zip
pdftrio client: use HTTP session for POSTs
Diffstat (limited to 'python')
-rw-r--r--python/sandcrawler/pdftrio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/pdftrio.py b/python/sandcrawler/pdftrio.py
index d765164..0ca83b1 100644
--- a/python/sandcrawler/pdftrio.py
+++ b/python/sandcrawler/pdftrio.py
@@ -29,7 +29,7 @@ class PdfTrioClient(object):
assert blob and type(blob) == bytes
try:
- pdftrio_response = requests.post(
+ pdftrio_response = self.http_session.post(
self.host_url + "/classify/research-pub/" + mode,
files={
"pdf_content": blob,