]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Set Content-Type header on POST request 78/head
authorHenryk Plötz <henryk@ploetzli.ch>
Sun, 9 Jun 2019 16:17:34 +0000 (18:17 +0200)
committerGitHub <noreply@github.com>
Sun, 9 Jun 2019 16:17:34 +0000 (18:17 +0200)
Fixes #65

fints/connection.py

index 8b624c22fdc7d47529aa3c75fe13d45a20bb2724..7cb3e393eaac76efec1f31f7824d158e86af4cd5 100644 (file)
@@ -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: