/[monit]/monit/http/processor.c
ViewVC logotype

Diff of /monit/http/processor.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.46 by hauk, Sun Dec 12 23:45:09 2004 UTC revision 1.47 by hauk, Sun Dec 19 00:31:51 2004 UTC
# Line 544  static HttpRequest create_HttpRequest(So Line 544  static HttpRequest create_HttpRequest(So
544      internal_error(S, SC_BAD_REQUEST, "No request found");      internal_error(S, SC_BAD_REQUEST, "No request found");
545      return NULL;      return NULL;
546    }    }
547    Util_chomp(line,REQ_STRLEN);    Util_chomp(line);
   /* RATS: ignore */ /* Util_chomp does zero termination */  
548    if(sscanf(line, "%s %s HTTP/%3[1.0]", method, url, protocol) != 3) {    if(sscanf(line, "%s %s HTTP/%3[1.0]", method, url, protocol) != 3) {
549      internal_error(S, SC_BAD_REQUEST, "Cannot parse request");      internal_error(S, SC_BAD_REQUEST, "Cannot parse request");
550      return NULL;      return NULL;
# Line 610  static void create_headers(HttpRequest r Line 609  static void create_headers(HttpRequest r
609        *value++= 0;        *value++= 0;
610        Util_trim(line);        Util_trim(line);
611        Util_trim(value);        Util_trim(value);
612        Util_chomp(value, (REQ_STRLEN-(value-line)));        Util_chomp(value);
613        header->name= xstrdup(line);        header->name= xstrdup(line);
614        header->value= xstrdup(value);        header->value= xstrdup(value);
615        header->next= req->headers;        header->next= req->headers;

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26