From ff29f8848a442ced8769de174e0ab3a7bc72044f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Henryk=20Pl=C3=B6tz?= Date: Sun, 9 Jun 2019 18:17:34 +0200 Subject: [PATCH] Set Content-Type header on POST request Fixes #65 --- fints/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fints/connection.py b/fints/connection.py index 8b624c2..7cb3e39 100644 --- a/fints/connection.py +++ b/fints/connection.py @@ -24,6 +24,9 @@ class FinTSHTTPSConnection: r = requests.post( self.url, data=base64.b64encode(msg.render_bytes()), + headers={ + 'Content-Type': 'text/plain', + }, ) if r.status_code < 200 or r.status_code > 299: -- 2.39.5