-
- Downloads
[FIX] base, web: set 304 status in binary_content
Before this commit, the No Change status wasn't properly set because
the `filehash` wasn't passed to `_binary_set_headers` and because
the status was not changed to 304 if it was already set to 200 earlier.
This commit fixes this issue and also prevents images to be processed
in `content_image` if the status is 304.
opw-2008426
closes odoo/odoo#34032
Signed-off-by:
Christophe Simonis <chs@odoo.com>
Showing
- addons/web/controllers/main.py 1 addition, 1 deletionaddons/web/controllers/main.py
- addons/web/tests/test_image.py 21 additions, 0 deletionsaddons/web/tests/test_image.py
- odoo/addons/base/models/ir_http.py 5 additions, 3 deletionsodoo/addons/base/models/ir_http.py
- odoo/tests/common.py 3 additions, 3 deletionsodoo/tests/common.py
Loading
Please register or sign in to comment