From eb2754bef8c1bc9073683ed6f4fb9b82209c2990 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 16 Jul 2019 14:49:01 +0200 Subject: [PATCH] CLEANUP: proto_http: Remove unecessary includes and comments --- include/proto/proto_http.h | 4 +--- include/types/proto_http.h | 24 ------------------------ src/http_fetch.c | 1 + 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h index e360a5a409..ea8932c6ad 100644 --- a/include/proto/proto_http.h +++ b/include/proto/proto_http.h @@ -24,11 +24,9 @@ #include #include +#include #include #include -#include -#include -#include extern struct pool_head *pool_head_uniqueid; diff --git a/include/types/proto_http.h b/include/types/proto_http.h index 295a98624a..5125879aa5 100644 --- a/include/types/proto_http.h +++ b/include/types/proto_http.h @@ -22,15 +22,10 @@ #ifndef _TYPES_PROTO_HTTP_H #define _TYPES_PROTO_HTTP_H -#include #include #include -#include -#include #include -#include -//#include /* These are the flags that are found in txn->flags */ @@ -79,25 +74,6 @@ /* used only for keep-alive purposes, to indicate we're on a second transaction */ #define TX_NOT_FIRST 0x00040000 /* the transaction is not the first one */ -/* The HTTP parser is more complex than it looks like, because we have to - * support multi-line headers and any number of spaces between the colon and - * the value. - * - * All those examples must work : - - Hdr1:val1\r\n - Hdr1: val1\r\n - Hdr1:\t val1\r\n - Hdr1: \r\n - val1\r\n - Hdr1:\r\n - val1\n - \tval2\r\n - val3\n - - * - */ - /* * HTTP message status flags (msg->flags) */ diff --git a/src/http_fetch.c b/src/http_fetch.c index c2dd9b5f13..cdf1c0e71a 100644 --- a/src/http_fetch.c +++ b/src/http_fetch.c @@ -33,6 +33,7 @@ #include #include +#include #include #include #include -- 2.47.3