]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http: export http_get_path() function
authorThierry FOURNIER <tfournier@arpalert.org>
Thu, 17 Sep 2015 17:33:35 +0000 (19:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2015 21:39:27 +0000 (23:39 +0200)
This patch simply exports the http_get_path() function from the proto_http.c file.

include/proto/proto_http.h
src/proto_http.c

index 8385dc6932e29205530f9b74f4361038c1d04854..dfa094ac18f96360b2d746530f2eb4b7969618e0 100644 (file)
@@ -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);
index 44a5d4b6667c9898bfd89a994a19e20e511ad034..33893edf5a3905ae48508710d323cda298e6a5ae 100644 (file)
@@ -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;