- Timestamp:
- Apr 6, 2009 9:06:45 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/QIHttp.h
r14274 r18734 55 55 56 56 /* Advanced QHttp errors */ 57 TimeoutError, /* MaxWaitTime time passed with no response */ 58 PageNotFoundError, /* Corresponds to 404 == not found header */ 59 MovedTemporarilyError /* Corresponds to 302 == moved temporarily response */ 57 TimeoutError, /* MaxWaitTime time passed with no response */ 58 PageNotFoundError, /* Corresponds to 404 == not found header */ 59 MovedPermanentlyError, /* Corresponds to 301 == moved permanently response */ 60 MovedTemporarilyError /* Corresponds to 302 == moved temporarily response */ 60 61 }; 61 62 … … 92 93 return tr ("Could not locate the file on " 93 94 "the server (response: %1)").arg (mStatusCode); 95 case MovedPermanentlyError: 94 96 case MovedTemporarilyError: 95 97 return QString::null; /* should be redirected anyway */ … … 134 136 switch (mStatusCode) 135 137 { 138 case 301: 139 mErrorCode = MovedPermanentlyError; 140 return abort(); 136 141 case 302: 137 142 mErrorCode = MovedTemporarilyError; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxDownloaderWgt.cpp
r17317 r18734 105 105 break; 106 106 } 107 case QIHttp::MovedPermanentlyError: 107 108 case QIHttp::MovedTemporarilyError: 108 109 {
Note:
See TracChangeset
for help on using the changeset viewer.