httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Marr <>
Subject Re: [PATCH] optimization for setting of allowed methods
Date Thu, 06 Sep 2001 16:29:40 GMT
At 11:50 AM 09/06/2001, Brian Pane wrote:
>This patch eliminates some run-time conversion of method names to 
>numbers (something that I noticed while looking through function 
>call profiles).
>RCS file: /home/cvspublic/httpd-2.0/server/core.c,v
>-    ap_allow_methods(r, MERGE_ALLOW, "GET", "OPTIONS", "POST", NULL);
>+    ap_allow_standard_methods(r, MERGE_ALLOW, M_GET, M_OPTIONS, 
>M_POST, -1);
>RCS file: 
>-    ap_allow_methods(r, REPLACE_ALLOW, "GET", "OPTIONS", "POST", 
>+    ap_allow_standard_methods(r, REPLACE_ALLOW, M_GET, M_OPTIONS, 
>M_POST, -1);

Weren't these "method numbers" recently removed so that there are no 
"standard" methods, and all the methods are added the same way at run 

Greg Marr
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"

View raw message