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.
12 jobs for fix/ERP5JS-safari-download-json in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner2

01:02:34

passed ERP5.UnitTest-TestRunner2

02:36:31

passed ERP5.CodingStyleTest-TestRunner2

01:24:44

passed ERP5.CodingStyleTest-TestRunner2

01:26:53

passed ERP5.CodingStyleTest-TestRunner2

01:27:45

passed ERP5.CodingStyleTest-TestRunner2

01:14:44

passed ERP5.CodingStyleTest-TestRunner2

01:15:46

passed ERP5.UnitTest-TestRunner2

02:16:07

failed ERP5.UnitTest-TestRunner2

02:16:48

failed ERP5.UnitTest-TestRunner2

02:43:45

passed ERP5.UnitTest-TestRunner2

02:33:18

failed ERP5.UnitTest-TestRunner2

02:17:55