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 2 Created Aug. 24, 2017, 6:18 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') | no next file » | 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')
+ body_len = int(self.headers.get('content-length', 0))
+ 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),
+ 'body': body,
mathias 2017/08/24 18:23:38 Wasn't that $request_body in Nginx?
}
values.update(self.get_header_values())
try:
« no previous file with comments | « hiera/roles/web/adblockbrowser.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld