Replace pycurl library in osmclient by requests library
[osm/osmclient.git] / osmclient / sol005 / nst.py
index 19092b2..989e0bd 100644 (file)
@@ -192,10 +192,7 @@ class Nst(object):
                     )
                 )
             headers["Content-File-MD5"] = utils.md5(filename)
-            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.put_cmd(
                     endpoint=update_endpoint, filename=filename