VirtualBox

Changeset 74019 in vbox for trunk/src


Ignore:
Timestamp:
Sep 1, 2018 8:54:29 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/http: Fixed POST request with zero body. bugref:9167

File:
1 edited

Legend:

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

    r73977 r74019  
    29402940        }
    29412941
    2942         /* Request body. */
    2943         if (pvReqBody && cbReqBody > 0 && CURL_SUCCESS(rcCurl))
     2942        /* Request body.  POST requests should always have a body. */
     2943        if (   pvReqBody
     2944            && CURL_SUCCESS(rcCurl)
     2945            && (   cbReqBody > 0
     2946                || enmMethod == RTHTTPMETHOD_POST) )
    29442947        {
    29452948            if (enmMethod == RTHTTPMETHOD_POST)
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