X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_response_object.c;h=ec67afccb141571fbb58489f61bad99538cbfe9c;hb=4e3211cfb2655e91693bbb139e3a32fb6825830d;hp=915297ef86db87231419032765120263d178d687;hpb=df7aeca1431cca4653468825a00b68b240c6ddbb;p=m6w6%2Fext-http diff --git a/http_response_object.c b/http_response_object.c index 915297e..ec67afc 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -494,7 +494,7 @@ PHP_METHOD(HttpResponse, setCacheControl) http_error_ex(HE_WARNING, HTTP_E_INVALID_PARAM, "Cache-Control '%s' doesn't match public, private or no-cache", ccontrol); RETURN_FALSE; } else { - size_t cctl_len = spprintf(&cctl, 0, "%s, must-revalidate, max_age=%ld", ccontrol, max_age); + size_t cctl_len = spprintf(&cctl, 0, "%s, must-revalidate, max-age=%ld", ccontrol, max_age); RETVAL_SUCCESS(UPD_STATIC_STRL(cacheControl, cctl, cctl_len)); efree(cctl); }