web_renderjs_ui: fix detection of Base_redirect redirections
The check was made on the blob response type, which is set from the Content-Type header returned by the server, but Safari has a different interpretation of the charset parameter from the mime type, with a content type set to application/json;charset=utf-8 like Base_redirect does today, safari creates a blob with type application/json;charset=utf-8 and this was not detected as redirection and the json returned by Base_redirect was downloaded. Fix this by checking only the essence of the type. This also revealed a potential problem when actually downloading json files, in that case we also check that we have the X-Location header, that is supposed to be set by Base_redirect before interpreting the json and when it's not present we force download.
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#724573
external
|
ERP5.CodingStyleTest-TestRunner2 |
01:02:34
|
||||||
passed |
#724618
external
|
ERP5.UnitTest-TestRunner2 |
02:36:31
|
||||||
passed |
#723530
external
retried
|
ERP5.CodingStyleTest-TestRunner2 |
01:24:44
|
||||||
passed |
#724488
external
retried
|
ERP5.CodingStyleTest-TestRunner2 |
01:26:53
|
||||||
passed |
#724318
external
retried
|
ERP5.CodingStyleTest-TestRunner2 |
01:27:45
|
||||||
passed |
#724057
external
retried
|
ERP5.CodingStyleTest-TestRunner2 |
01:14:44
|
||||||
passed |
#723949
external
retried
|
ERP5.CodingStyleTest-TestRunner2 |
01:15:46
|
||||||
passed |
#723531
external
retried
|
ERP5.UnitTest-TestRunner2 |
02:16:07
|
||||||
failed |
#723952
external
retried
|
ERP5.UnitTest-TestRunner2 |
02:16:48
|
||||||
failed |
#724319
external
retried
|
ERP5.UnitTest-TestRunner2 |
02:43:45
|
||||||
passed |
#724496
external
retried
|
ERP5.UnitTest-TestRunner2 |
02:33:18
|
||||||
failed |
#724054
external
retried
|
ERP5.UnitTest-TestRunner2 |
02:17:55
|
||||||