Replace `httprequest.stream.read()` by `httprequest.get_data()` so the payload content remains available: get_data stores the request body (by default) so it remains available for alternative processing or checks (MAC checks for webhook validations for instance). With `stream.read()`, once the data is read if it's not stored separately it is lost.
337 B
337 B
R. Macedonia, 2015-02-08
I hereby agree to the terms of the Odoo Individual Contributor License Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this declaration.
Signed,
Kiril Vangelovski kiril@hacbee.com https://github.com/kirca Kiril Vangelovski kiril@lambda-is.com https://github.com/kirca