VirtualBox

Changeset 18734 in vbox for trunk/src


Ignore:
Timestamp:
Apr 6, 2009 9:06:45 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: QIHttp class: implemented missed handling of MovedPermanentlyError downloading error.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/QIHttp.h

    r14274 r18734  
    5555
    5656        /* 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 */
    6061    };
    6162
     
    9293                return tr ("Could not locate the file on "
    9394                           "the server (response: %1)").arg (mStatusCode);
     95            case MovedPermanentlyError:
    9496            case MovedTemporarilyError:
    9597                return QString::null; /* should be redirected anyway */
     
    134136        switch (mStatusCode)
    135137        {
     138            case 301:
     139                mErrorCode = MovedPermanentlyError;
     140                return abort();
    136141            case 302:
    137142                mErrorCode = MovedTemporarilyError;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxDownloaderWgt.cpp

    r17317 r18734  
    105105            break;
    106106        }
     107        case QIHttp::MovedPermanentlyError:
    107108        case QIHttp::MovedTemporarilyError:
    108109        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette