diff --git a/google/appengine/runtime/CurlLite.php b/google/appengine/runtime/CurlLite.php index d3929c63..08482c4c 100644 --- a/google/appengine/runtime/CurlLite.php +++ b/google/appengine/runtime/CurlLite.php @@ -484,9 +484,10 @@ private function setOption($key, $value) { case CURLOPT_QUOTE: case CURLOPT_PROGRESSFUNCTION: case CURLOPT_SHARE: - throw new CurlLiteOptionNotSupportedException( - 'Option ' . $key . ' is not supported by this curl implementation.'); - + if ($value !== null) { + throw new CurlLiteOptionNotSupportedException( + 'Option ' . $key . ' is not supported by this curl implementation.'); + } // Everything else is a no-op, or will be configured at request time. default: }