Replace pycurl library in osmclient by requests library
[osm/osmclient.git] / osmclient / sol005 / pdud.py
index e47dadd..942516c 100644 (file)
@@ -118,10 +118,7 @@ class Pdu(object):
         self._client.get_token()
         headers = self._client._headers
         headers["Content-Type"] = "application/yaml"
-        http_header = [
-            "{}: {}".format(key, val) for (key, val) in list(headers.items())
-        ]
-        self._http.set_http_header(http_header)
+        self._http.set_http_header(headers)
         if update_endpoint:
             http_code, resp = self._http.patch_cmd(
                 endpoint=update_endpoint, postfields_dict=pdu