Fixed an error where the curl transport layer would hang
on newer versions of curl.