diff options
-rw-r--r-- | src/usr/local/www/interfaces.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index 710b42e..de8f776 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -3396,7 +3396,8 @@ events.push(function() { } function report_failure(request, textStatus, errorThrown) { - if (textStatus === "error" && request.getResponseHeader("Content-Type") === "text/plain") { + contenttype = ";"+request.getResponseHeader("Content-Type")+";"; + if (textStatus === "error" && contenttype.indexOf(";text/plain;") !== -1) { alert(request.responseText); } else { alert("The IPv4 gateway could not be created."); |