From: Tim Duesterhus Date: Thu, 15 Apr 2021 19:45:55 +0000 (+0200) Subject: MINOR: uri_normalizer: Add uri_normalizer module X-Git-Tag: v2.4-dev17~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd25c34de74c5f02bf190d0723cd7b8465cac75;p=thirdparty%2Fhaproxy.git MINOR: uri_normalizer: Add uri_normalizer module This is in preparation for future patches. --- diff --git a/Makefile b/Makefile index 607d484369..f80ba4b0ca 100644 --- a/Makefile +++ b/Makefile @@ -889,7 +889,7 @@ OBJS += src/mux_h2.o src/mux_fcgi.o src/http_ana.o src/stream.o \ src/hpack-enc.o src/hpack-huff.o src/ebtree.o src/base64.o \ src/hash.o src/dgram.o src/version.o src/fix.o src/mqtt.o src/dns.o \ src/server_state.o src/proto_uxdg.o src/init.o src/cfgdiag.o \ - src/mjson.o + src/mjson.o src/uri_normalizer.o ifneq ($(TRACE),) OBJS += src/calltrace.o diff --git a/include/haproxy/uri_normalizer.h b/include/haproxy/uri_normalizer.h new file mode 100644 index 0000000000..82ef973249 --- /dev/null +++ b/include/haproxy/uri_normalizer.h @@ -0,0 +1,24 @@ +/* + * include/haproxy/uri_normalizer.h + * HTTP request URI normalization. + * + * Copyright 2021 Tim Duesterhus + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + * + */ + +#ifndef _HAPROXY_URI_NORMALIZER_H +#define _HAPROXY_URI_NORMALIZER_H + +#endif /* _HAPROXY_URI_NORMALIZER_H */ + +/* + * Local variables: + * c-indent-level: 8 + * c-basic-offset: 8 + * End: + */ diff --git a/src/uri_normalizer.c b/src/uri_normalizer.c new file mode 100644 index 0000000000..7db47d1980 --- /dev/null +++ b/src/uri_normalizer.c @@ -0,0 +1,21 @@ +/* + * HTTP request URI normalization. + * + * Copyright 2021 Tim Duesterhus + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + * + */ + +#include +#include + +/* + * Local variables: + * c-indent-level: 8 + * c-basic-offset: 8 + * End: + */