Setting the CURLOPT_NOBODY to true if no data, to get the similar behaviour as earlier.