| 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: |