VirtualBox

Changeset 58206 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
Oct 12, 2015 5:09:51 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
103321
Message:

Runtime/http-curl: fix for GetHeader*

File:
1 edited

Legend:

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

    r58202 r58206  
    22162216    if (CURL_FAILURE(rcCurl))
    22172217        return VERR_HTTP_CURL_ERROR;
     2218    rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_HEADER, 0L);
     2219    if (CURL_FAILURE(rcCurl))
     2220        return VERR_HTTP_CURL_ERROR;
    22182221
    22192222    return VINF_SUCCESS;
     
    23302333        if (!CURL_FAILURE(rcCurl))
    23312334            rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_WRITEDATA, (void *)pThis);
    2332         if (!CURL_FAILURE(rcCurl))
    2333             rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_NOBODY, fNoBody ? 1L : 0L);
     2335        if (fNoBody)
     2336        {
     2337            if (!CURL_FAILURE(rcCurl))
     2338                rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_NOBODY, 1L);
     2339            if (!CURL_FAILURE(rcCurl))
     2340                rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_HEADER, 1L);
     2341        }
    23342342        if (!CURL_FAILURE(rcCurl))
    23352343        {
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