[Rivet-svn] r4258 - bootstrap

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Fri Apr 19 14:25:20 BST 2013


Author: fsiegert
Date: Fri Apr 19 14:25:20 2013
New Revision: 4258

Log:
Workaround for fastjet server rejection.

Modified:
   bootstrap/rivet-bootstrap

Modified: bootstrap/rivet-bootstrap
==============================================================================
--- bootstrap/rivet-bootstrap	Fri Apr 19 11:50:41 2013	(r4257)
+++ bootstrap/rivet-bootstrap	Fri Apr 19 14:25:20 2013	(r4258)
@@ -272,7 +272,8 @@
     out = None
     try:
         logging.info("Downloading %s" % url)
-        hreq = urllib2.urlopen(url)
+        request = urllib2.Request(url, headers={"Accept" : "text/html"})
+        hreq = urllib2.urlopen(request)
         out = open(outpath, "w")
         out.write(hreq.read())
         out.close()


More information about the Rivet-svn mailing list