Replace pycurl library in osmclient by requests library
[osm/osmclient.git] / osmclient / sol005 / nsi.py
index 6efce4b..b9d5e4b 100644 (file)
@@ -260,10 +260,7 @@ class Nsi(object):
             )
             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)
             http_code, resp = self._http.post_cmd(
                 endpoint=self._apiBase, postfields_dict=nsi
             )