Commits

Nicholas Tollervey committed 220c80d

lowercase

Comments (0)

Files changed (1)

     headers = {}
     headers['Accept'] = 'application/json'
     if body:
-        headers['Content-Type'] = 'application/json'
+        headers['content-type'] = 'application/json'
     response, content = http.request(url, method, body, headers)
     status = response.status
-    if response['Content-Type'].startswith('application/json'):
+    if response['content-type'].startswith('application/json'):
         result = json.loads(content)
     else:
         result = content