- separated http_check_method() from http_check_allowed_methods()
[m6w6/ext-http] / http_cache_api.c
index 8d2b47f5e23cd29e9bfc76efaad131a2f56ccc45..c75b6dcf5078e7b0d36ecdeb91f542e75fc8af40 100644 (file)
@@ -207,7 +207,7 @@ PHP_HTTP_API STATUS _http_cache_etag(const char *etag, size_t etag_len,
                if (!http_match_etag("HTTP_IF_NONE_MATCH", etag)) {
                        return SUCCESS;
                }
-               return http_cache_exit_ex(etag, 1, 0);
+               return http_cache_exit_ex((char *)etag, 1, 0);
        }
 
        /* if no etag is given and we didn't already start ob_etaghandler -- start it */