[csw-devel] SF.net SVN: gar:[20562] csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Apr 1 15:46:51 CEST 2013
Revision: 20562
http://gar.svn.sourceforge.net/gar/?rev=20562&view=rev
Author: wahwah
Date: 2013-04-01 13:46:50 +0000 (Mon, 01 Apr 2013)
Log Message:
-----------
csw-upload-pkg: Don't try without authentication.
Use basic http auth right from the start.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
Modified: csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/csw_upload_pkg.py 2013-04-01 13:28:44 UTC (rev 20561)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py 2013-04-01 13:46:50 UTC (rev 20562)
@@ -106,7 +106,7 @@
"""Set basic HTTP auth options on given Curl object."""
if self.username:
logging.debug("Using basic AUTH for user %s", self.username)
- c.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_ANY)
+ c.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_BASIC)
c.setopt(pycurl.USERPWD, "%s:%s" % (self.username, self.password))
else:
logging.debug("User and password not set, not using HTTP AUTH")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list