Firefox控制台在HTTP 204响应中抛出"找不到元素"

Ska*_*tch 11 javascript firefox httpresponse angularjs http-status-code-204

一切确实有效,但我无法在firefox控制台中摆脱这个错误:

找不到任何元素

我正在向我的api发送HTTP请求:

$http({
    url: API_LOCATION + 'expenses/' + obj.expense.id + '/', 
    method: "DELETE",
}).then(function(response){
    if(response.status === 204) {
        var params = $location.search();
        params['alert-success'] = ALERTS.EXPENSE_DELETED;
        $location.search(params);
    }
    $route.reload();
});
Run Code Online (Sandbox Code Playgroud)

和我的(django rest框架)api返回HTTP_204_NO_CONTENT状态

mus*_*_ut 11

这是最近重新解决的Firefox错误:https://bugzilla.mozilla.org/show_bug.cgi?id = 884693