- ditch some warnings
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 244c423d92e59a2c170abd94b64b99f94acf1a93..38f91f829d9841c3002a5607217912758742e893 100644 (file)
--- a/http.c
+++ b/http.c
@@ -334,10 +334,9 @@ PHP_MSHUTDOWN_FUNCTION(http)
 /* {{{ PHP_RINIT_FUNCTION */
 PHP_RINIT_FUNCTION(http)
 {
-       char *m;
-
-       if (m = INI_STR("http.allowed_methods")) {
-               http_check_allowed_methods(m, strlen(m));
+       if (HTTP_G(request).methods.allowed) {
+               http_check_allowed_methods(HTTP_G(request).methods.allowed, 
+                       strlen(HTTP_G(request).methods.allowed));
        }
 
        http_globals_init(HTTP_GLOBALS);