From: Thierry FOURNIER Date: Thu, 17 Sep 2015 17:33:35 +0000 (+0200) Subject: MINOR: http: export http_get_path() function X-Git-Tag: v1.6-dev6~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c3317849f6c082a3a6e1dc63a97de2f8e6f4fbe;p=thirdparty%2Fhaproxy.git MINOR: http: export http_get_path() function This patch simply exports the http_get_path() function from the proto_http.c file. --- 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;