Bugfix: If you make a GET request after a PUT request you still have the PUT value for CURLOPT_CUSTOMREQUEST, causing an error.
I have forced CURLOPT_CUSTOMREQUEST to 'GET' on get requests to avoid header overriding.