Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Commit 8ff9107

Browse files
committed
Re-fix capitalization
when did that change back
1 parent 9d6ce2a commit 8ff9107

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

bandwidth/account/client_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _request(self, method, url, *args, **kwargs):
6969
def _check_response(self, response):
7070
if response.status_code >= 400:
7171
if response.headers.get('content-type') is not None and \
72-
response.headers.get('content-type').startsWith("application/json"):
72+
response.headers.get('content-type').startswith("application/json"):
7373
data = response.json()
7474
raise BandwidthAccountAPIException(
7575
response.status_code, data['message'], code=data.get('code'))
@@ -83,7 +83,7 @@ def _make_request(self, method, url, *args, **kwargs):
8383
data = None
8484
id = None
8585
if response.headers.get('content-type') is not None and \
86-
response.headers.get('content-type').startsWith("application/json"):
86+
response.headers.get('content-type').startswith("application/json"):
8787
data = convert_object_to_snake_case(response.json())
8888
location = response.headers.get('location')
8989
if location is not None:

bandwidth/messaging/client_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _request(self, method, url, *args, **kwargs):
6868
def _check_response(self, response):
6969
if response.status_code >= 400:
7070
if response.headers.get('content-type') is not None and \
71-
response.headers.get('content-type').startsWith("application/json"):
71+
response.headers.get('content-type').startswith("application/json"):
7272
data = response.json()
7373
raise BandwidthMessageAPIException(
7474
response.status_code, data['message'], code=data.get('code'))
@@ -82,7 +82,7 @@ def _make_request(self, method, url, *args, **kwargs):
8282
data = None
8383
id = None
8484
if response.headers.get('content-type') is not None and \
85-
response.headers.get('content-type').startsWith("application/json"):
85+
response.headers.get('content-type').startswith("application/json"):
8686
data = convert_object_to_snake_case(response.json())
8787
location = response.headers.get('location')
8888
if location is not None:

bandwidth/voice/client_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _request(self, method, url, *args, **kwargs):
7777
def _check_response(self, response):
7878
if response.status_code >= 400:
7979
if response.headers.get('content-type') is not None and \
80-
response.headers.get('content-type').startsWith("application/json"):
80+
response.headers.get('content-type').startswith("application/json"):
8181
data = response.json()
8282
raise BandwidthVoiceAPIException(
8383
response.status_code, data['message'], code=data.get('code'))
@@ -91,7 +91,7 @@ def _make_request(self, method, url, *args, **kwargs):
9191
data = None
9292
id = None
9393
if response.headers.get('content-type') is not None and \
94-
response.headers.get('content-type').startsWith("application/json"):
94+
response.headers.get('content-type').startswith("application/json"):
9595
data = convert_object_to_snake_case(response.json())
9696
location = response.headers.get('location')
9797
if location is not None:

0 commit comments

Comments
 (0)