Fixed issue in request handling for non-cURL.