http09received.c (401B)
1 #include "crossroads.h" 2 3 int http_09_received (unsigned char const *buf) { 4 if ( (!strncmp ( (char const *) buf, "GET", 3) || 5 !strncmp ( (char const *) buf, "POST", 4) || 6 !strncmp ( (char const *) buf, "HEAD", 4)) && 7 !strstr ( (char const *) buf, "HTTP/1") ) { 8 msg ("Got HTTP/0.9 protocol in '%s'", buf); 9 return (1); 10 } 11 msg ("Buffer is not HTTP/0.9: '%s'", buf); 12 return (0); 13 }