diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h index 8385dc693..dfa094ac1 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 44a5d4b66..33893edf5 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;