Changeset 74126 in vbox for trunk/src/VBox/Runtime/generic/http-curl.cpp
- Timestamp:
- Sep 6, 2018 6:29:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/http-curl.cpp
r74120 r74126 2906 2906 rtHttpGetDownloadStatusAndLength(pThis); 2907 2907 2908 if ( (pThis->fDownloadCallback & RTHTTPDOWNLOAD_F_ F_ONLY_STATUS_MASK) == RTHTTPDOWNLOAD_F_F_ANY_STATUS2909 || (pThis->fDownloadCallback & RTHTTPDOWNLOAD_F_ F_ONLY_STATUS_MASK) == pThis->uDownloadHttpStatus)2908 if ( (pThis->fDownloadCallback & RTHTTPDOWNLOAD_F_ONLY_STATUS_MASK) == RTHTTPDOWNLOAD_F_ANY_STATUS 2909 || (pThis->fDownloadCallback & RTHTTPDOWNLOAD_F_ONLY_STATUS_MASK) == pThis->uDownloadHttpStatus) 2910 2910 { 2911 2911 int rc = pThis->pfnDownloadCallback(pThis, pchBuf, cbToAppend, pThis->uDownloadHttpStatus, pThis->offDownloadContent, … … 2990 2990 2991 2991 /* Call the callback if the HTTP status code matches, otherwise let it go to /dev/null. */ 2992 if ( (pThis->fDownloadCallback & RTHTTPDOWNLOAD_F_ F_ONLY_STATUS_MASK) == RTHTTPDOWNLOAD_F_F_ANY_STATUS2993 || (pThis->fDownloadCallback & RTHTTPDOWNLOAD_F_ F_ONLY_STATUS_MASK) == pThis->uDownloadHttpStatus)2992 if ( (pThis->fDownloadCallback & RTHTTPDOWNLOAD_F_ONLY_STATUS_MASK) == RTHTTPDOWNLOAD_F_ANY_STATUS 2993 || (pThis->fDownloadCallback & RTHTTPDOWNLOAD_F_ONLY_STATUS_MASK) == pThis->uDownloadHttpStatus) 2994 2994 { 2995 2995 int rc = pThis->pfnDownloadCallback(pThis, pchBuf, cbBuf, pThis->uDownloadHttpStatus, pThis->offDownloadContent, … … 3541 3541 PRTHTTPINTERNAL pThis = hHttp; 3542 3542 RTHTTP_VALID_RETURN(pThis); 3543 AssertReturn(!pfnCallback || (fFlags & RTHTTPDOWNLOAD_F_ F_ONLY_STATUS_MASK) != 0, VERR_INVALID_FLAGS);3543 AssertReturn(!pfnCallback || (fFlags & RTHTTPDOWNLOAD_F_ONLY_STATUS_MASK) != 0, VERR_INVALID_FLAGS); 3544 3544 3545 3545 pThis->pfnDownloadCallback = pfnCallback;
Note:
See TracChangeset
for help on using the changeset viewer.