Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check the response status, rather than "requestSucceeded".

Refs: #1222
  • Loading branch information...
commit 5ec43f09decad113a92cfce0cda3cc683f927905 1 parent 0634ccc
@arantius arantius authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 content/scriptdownloader.js
View
4 content/scriptdownloader.js
@@ -192,7 +192,9 @@ function(dep, file, channel) {
httpChannel = false;
}
- if (httpChannel && httpChannel.requestSucceeded) {
+ if (httpChannel
+ && httpChannel.responseStatus >= 200 && httpChannel.responseStatus < 400
+ ) {
if (this.updateScript) {
dep._script = this.script;
dep.updateScript = true;
Please sign in to comment.
Something went wrong with that request. Please try again.