From 774a1e3eb989a3fb78485b53c7d0cd4af10a8d8f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Nov 2021 19:23:23 -0700 Subject: pdftrio client: use HTTP session for POSTs --- python/sandcrawler/pdftrio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3