Show
Ignore:
Timestamp:
10/15/07 13:00:40 (11 months ago)
Author:
evanweaver
Message:

fix #14086

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ext/http11/http11_parser.rl

    r331 r650  
    3939    if(parser->request_uri != NULL) 
    4040      parser->request_uri(parser->data, PTR_TO(mark), LEN(mark, fpc)); 
     41  } 
     42  action fragment {  
     43    if(parser->fragment != NULL) 
     44      parser->fragment(parser->data, PTR_TO(mark), LEN(mark, fpc)); 
    4145  } 
    4246 
     
    97101 
    98102  Request_URI = ("*" | absolute_uri | absolute_path) >mark %request_uri; 
     103  Fragment = ( uchar | reserved )* >mark %fragment; 
    99104  Method = (upper | digit | safe){1,20} >mark %request_method; 
    100105 
    101106  http_number = (digit+ "." digit+) ; 
    102107  HTTP_Version = ("HTTP/" http_number) >mark %http_version ; 
    103   Request_Line = (Method " " Request_URI " " HTTP_Version CRLF) ; 
     108  Request_Line = (Method " " Request_URI ("#" Fragment ){0,1} " " HTTP_Version CRLF) ; 
    104109 
    105110  field_name = (token -- ":")+ >start_field %write_field;