Files
odoo_source/odoo
tsm-odoo d68a3867f3 [FIX] service: fix attribute error on request handler
In order for websocket upgrade to work with firefox, the http version
must be set to `HTTP/1.1`.

Until now, this was done in the `send_response` method. The issue is
that this method is also used when sending an error. This is problematic
because we use environ to know whether or not the version should be changed
which means any error during `BaseHTTPRequestHandler.parse_request` (such as
wrong http version) would have led to an AttributeError being raised.

In order to solve this issue, this modification is done when making environ.
Moreover, we previously used the request uri to know whether or not the version
should be changed, this was not really reliable, we now use the upgrade header
for this purpose.

closes odoo/odoo#99535

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2022-09-05 18:35:31 +02:00
..
2022-09-05 16:54:01 +02:00
2022-08-26 18:41:26 +02:00
…
2022-09-02 23:16:06 +02:00
2022-07-11 09:04:51 +02:00