Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/adblockplus/files/mimeo.py

Issue 29525555: #622 - Use mimeo module on abb website (Closed)
Patch Set: For comment 10 Created Aug. 24, 2017, 8:01 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « hiera/roles/web/adblockbrowser.yaml ('k') | modules/adblockplus/manifests/web/mimeo.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/files/mimeo.py
===================================================================
--- a/modules/adblockplus/files/mimeo.py
+++ b/modules/adblockplus/files/mimeo.py
@@ -40,12 +40,15 @@
def do_POST(self):
status = 200
content = bytes(self.response, 'UTF-8')
+ request_body_len = int(self.headers.get('content-length', 0))
+ request_body = self.rfile.read(body_len).decode('UTF-8')
values = {
'remote_addr': self.address_string(),
'time_local': self.log_date_time_string(),
'request': self.requestline,
'status': status,
'bytes_sent': len(content),
+ 'request_body': request_body,
}
values.update(self.get_header_values())
try:
« no previous file with comments | « hiera/roles/web/adblockbrowser.yaml ('k') | modules/adblockplus/manifests/web/mimeo.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld