aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/https.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-10-16 22:51:18 +0000
committerRob Austein <sra@hactrn.net>2007-10-16 22:51:18 +0000
commit6ce933a32fda56860bc9ca05d2553255a820a635 (patch)
tree3631e4b9677cf67fd4e8189fa9d0bf7233f9b45e /scripts/rpki/https.py
parentbdf73f5360327b4e70b5e9bf81f7853b35a41463 (diff)
Formatting
svn path=/scripts/rpki/cms.py; revision=1163
Diffstat (limited to 'scripts/rpki/https.py')
-rw-r--r--scripts/rpki/https.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/rpki/https.py b/scripts/rpki/https.py
index 6aeba62a..eec9e3a0 100644
--- a/scripts/rpki/https.py
+++ b/scripts/rpki/https.py
@@ -42,7 +42,8 @@ def client(msg, privateKey, certChain, x509TrustList, url):
return response.read()
else:
r = response.read()
- raise rpki.exceptions.HTTPRequestFailed, "HTTP request failed with status %s, response %s" % (response.status, r)
+ raise rpki.exceptions.HTTPRequestFailed, \
+ "HTTP request failed with status %s, response %s" % (response.status, r)
class requestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
"""Derived type to supply POST handler."""
@@ -61,11 +62,13 @@ class requestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
try:
handler = self.rpki_find_handler()
if self.headers["Content-Type"] != rpki_content_type:
- rcode, rtext = 415, "Received Content-Type %s, expected %s" % (self.headers["Content-Type"], rpki_content_type)
+ rcode, rtext = 415, "Received Content-Type %s, expected %s" \
+ % (self.headers["Content-Type"], rpki_content_type)
elif handler is None:
rcode, rtext = 404, "No handler found for URL " + self.path
else:
- rcode, rtext = handler(query = self.rfile.read(int(self.headers["Content-Length"])), path = self.path)
+ rcode, rtext = handler(query = self.rfile.read(int(self.headers["Content-Length"])),
+ path = self.path)
except Exception, edata:
traceback.print_exc()
rcode, rtext = 500, "Unhandled exception %s" % edata