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 7 Created Aug. 24, 2017, 7:16 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
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:

Powered by Google App Engine
This is Rietveld