Commit da8e5131 authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Change the way JSON data is POSTed

parent 68069cf0
......@@ -62,7 +62,9 @@ class BrowserlessPDFRenderer(PDFRenderer):
)
# Request server
r = requests.post(self.api_url, headers=headers, params=params, json=data)
r = requests.post(
self.api_url, headers=headers, params=params, data=json.dumps(data)
)
r.raise_for_status()
log.info(
"BrowserlessPDFRenderer.render: received response, content size = %d",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment