Commit 5b2e5002 authored by Romain Courteaud's avatar Romain Courteaud Committed by Xiaowu Zhang

erp5_web_renderjs_ui: content-type header can be null

Like when the browser is offline.
parent 0850ea0a
...@@ -156,7 +156,8 @@ ...@@ -156,7 +156,8 @@
} }
} }
if (error instanceof XMLHttpRequest) { if (error instanceof XMLHttpRequest) {
if (error.getResponseHeader('Content-Type').indexOf('text/') === 0) { if ((error.getResponseHeader('Content-Type') || "")
.indexOf('text/') === 0) {
error_response = error.response; error_response = error.response;
} }
error = { error = {
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>982.16935.24089.33911</string> </value> <value> <string>982.26879.4100.14950</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1583166534.25</float> <float>1585300343.55</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment