Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Fixes typo in Content-Type header #513

Merged
merged 1 commit into from
Oct 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions influxdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(self,
self._port)

self._headers = {
'Content-type': 'application/json',
'Content-Type': 'application/json',
'Accept': 'text/plain'
}

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

if params:
precision = params.get('precision')
Expand Down