Changeset 925

Show
Ignore:
Timestamp:
09/27/07 21:22:31 (1 year ago)
Author:
adefacc
Message:

fixed detect_method() macro in parse_method() (header.c) as proposed by Stefan de Konink

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r924 r925  
     12007-09-27  Stefan de Konink <skinkie@xs4all.nl>, A.D.F  <adefacc@tin.it> 
     2 
     3        * cherokee/header.c 
     4          - parse_method(), fixed macro detect_method() 
     5            in order to avoid an automatic conversion from 
     6            a constant string to a char pointer which leads to a wrong 
     7            string comparison (sizeof(ptr)). 
     8 
    192007-09-26  A.D.F  <adefacc@tin.it> 
    210 
  • cherokee/trunk/cherokee/header.c

    r924 r925  
    272272 
    273273#define detect_method(l,str,mthd)                         \ 
    274         if (cmp_str (line+1, (str" ")+1)) { \ 
     274        if (cmp_str (line, (str" "))) { \ 
    275275                hdr->method = http_ ## mthd;    \ 
    276276                *pointer += sizeof(str);        \