Skip to content
Browse files

Check the response status, rather than "requestSucceeded".

Refs: #1222
  • Loading branch information...
1 parent 0634ccc commit 5ec43f09decad113a92cfce0cda3cc683f927905 @arantius arantius committed Jul 11, 2011
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;

0 comments on commit 5ec43f0

Please sign in to comment.
Something went wrong with that request. Please try again.