From 3c3317849f6c082a3a6e1dc63a97de2f8e6f4fbe Mon Sep 17 00:00:00 2001 From: Thierry FOURNIER Date: Thu, 17 Sep 2015 19:33:35 +0200 Subject: [PATCH] MINOR: http: export http_get_path() function This patch simply exports the http_get_path() function from the proto_http.c file. --- include/proto/proto_http.h | 1 + src/proto_http.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h index 8385dc6932..dfa094ac18 100644 --- a/include/proto/proto_http.h +++ b/include/proto/proto_http.h @@ -112,6 +112,7 @@ void http_capture_bad_message(struct error_snapshot *es, struct stream *s, unsigned int http_get_hdr(const struct http_msg *msg, const char *hname, int hlen, struct hdr_idx *idx, int occ, struct hdr_ctx *ctx, char **vptr, int *vlen); +char *http_get_path(struct http_txn *txn); struct http_txn *http_alloc_txn(struct stream *s); void http_init_txn(struct stream *s); diff --git a/src/proto_http.c b/src/proto_http.c index 44a5d4b666..33893edf5a 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -986,8 +986,7 @@ enum http_meth_t find_http_meth(const char *str, const int len) * phase) and look for the "/" beginning the PATH. If not found, return NULL. * It is returned otherwise. */ -static char * -http_get_path(struct http_txn *txn) +char *http_get_path(struct http_txn *txn) { char *ptr, *end; -- 2.47.3