Always set CURLOPT_READDATA when CURLOPT_READFUNCTION is set.
The code relied on the assumption that libcurl wouldn't call the read callback if the header specified Content-Length: 0, which is not true on MacOS and overall is a wrong assumption to make. PiperOrigin-RevId: 160687029
Loading
Please sign in to comment