Skip to content

Commit a99c90e

Browse files
authored
Fixes typo in Content-Type header
1 parent c9a1b86 commit a99c90e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

influxdb/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __init__(self,
113113
self._port)
114114

115115
self._headers = {
116-
'Content-type': 'application/json',
116+
'Content-Type': 'application/json',
117117
'Accept': 'text/plain'
118118
}
119119

@@ -283,7 +283,7 @@ def write(self, data, params=None, expected_response_code=204,
283283
:rtype: bool
284284
"""
285285
headers = self._headers
286-
headers['Content-type'] = 'application/octet-stream'
286+
headers['Content-Type'] = 'application/octet-stream'
287287

288288
if params:
289289
precision = params.get('precision')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy