This website works better with JavaScript.
Home
Help
Register
Sign In
nilm
/
nilmdb
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
64
Wiki
Activity
Browse Source
Decode non-JSON HTTP responses when possible
This doesn't affect anything in nilmdb, but is needed by nilmrun.
tags/nilmdb-2.0.2
Jim Paris
2 years ago
parent
0222dfebf0
commit
85f822e1c4
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
nilmdb/client/httpclient.py
+ 1
- 1
nilmdb/client/httpclient.py
View File
@@ -109,7 +109,7 @@ class HTTPClient():
stream=False, headers=headers)
if isjson:
return json.loads(response.content)
return response.
conten
t
return response.
tex
t
def get(self, url, params=None):
"""Simple GET (parameters in URL)"""
Write
Preview
Loading…
Cancel
Save