--- embedaddon/lighttpd/src/request.h 2013/10/14 10:32:48 1.1 +++ embedaddon/lighttpd/src/request.h 2016/11/02 10:35:00 1.1.1.2 @@ -1,9 +1,17 @@ #ifndef _REQUEST_H_ #define _REQUEST_H_ +#include "first.h" #include "server.h" +typedef enum { + HTTP_PARSEOPT_HEADER_STRICT = 1 + ,HTTP_PARSEOPT_HOST_STRICT = 2 + ,HTTP_PARSEOPT_HOST_NORMALIZE = 4 +} http_parseopts_e; + int http_request_parse(server *srv, connection *con); int http_request_header_finished(server *srv, connection *con); +int http_request_host_normalize(buffer *b); #endif