VirtualBox

Changeset 75103 in vbox


Ignore:
Timestamp:
Oct 26, 2018 3:00:04 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126165
Message:

IPRT/http: RTHttpReset - free headers from the previous request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r74379 r75103  
    416416    AssertReturn(!pThis->fBusy, VERR_WRONG_ORDER);
    417417
     418    /* This resets options, but keeps open connections, cookies, etc. */
     419    curl_easy_reset(pThis->pCurl);
     420
     421    rtHttpFreeHeaders(pThis);
     422
    418423    pThis->uDownloadHttpStatus      = UINT32_MAX;
    419424    pThis->cbDownloadContent        = UINT64_MAX;
     
    423428    pThis->rcOutput                 = VINF_SUCCESS;
    424429
    425     /* This resets options, but keeps open connections, cookies, etc. */
    426     curl_easy_reset(pThis->pCurl);
    427430    return VINF_SUCCESS;
    428431}
Note: See TracChangeset for help on using the changeset viewer.

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