DCC example code sets both content-type and accept for sending API access
authorDiane Trout <diane@ghic.org>
Thu, 24 Jul 2014 21:52:28 +0000 (14:52 -0700)
committerDiane Trout <diane@ghic.org>
Thu, 24 Jul 2014 21:52:28 +0000 (14:52 -0700)
htsworkflow/submission/encoded.py

index 71945b335911f8d2ffacbd77f48399c8e4d4fea1..a2d0add0fde7d03e09eba2cc342d04c4474f8c4e 100644 (file)
@@ -95,7 +95,7 @@ class ENCODED:
         self.username = None
         self.password = None
         self.contexts = contexts if contexts else ENCODED_CONTEXT
-        self.json_headers = {'Content-Type': 'application/json'}
+        self.json_headers = {'content-type': 'application/json', 'accept': 'application/json'}
         self.schemas = {}
 
     def get_auth(self):