X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fsol005%2Fhttp.py;h=867db2da04162b020618475ae4886ec4828050f0;hb=refs%2Fchanges%2F79%2F6279%2F1;hp=7988d89a489b1365397265f8ba86ecb54b19114e;hpb=bd1e05f5d5f89dce132a98853d3035f9dfc8d168;p=osm%2Fosmclient.git diff --git a/osmclient/sol005/http.py b/osmclient/sol005/http.py index 7988d89..867db2d 100644 --- a/osmclient/sol005/http.py +++ b/osmclient/sol005/http.py @@ -74,7 +74,7 @@ class Http(http.Http): (pycurl.FORM_FILE, formfile[1])))]) elif filename is not None: - with open(filename, 'r') as stream: + with open(filename, 'rb') as stream: postdata=stream.read() curl_cmd.setopt(pycurl.POSTFIELDS, postdata)