}
/* is request */
- else {
+ else if (!http[lenof("HTTP/1.x")] || http[lenof("HTTP/1.x")] == '\r' || http[lenof("HTTP/1.x")] == '\n') {
const char *url = strchr(pre_header, ' ');
info->type = IS_HTTP_REQUEST;
return SUCCESS;
}
+
+ /* some darn header containing HTTP/1.x */
+ else {
+ return FAILURE;
+ }
}