]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http: export the get_reason() function
authorThierry FOURNIER <tfournier@arpalert.org>
Fri, 18 Sep 2015 15:59:23 +0000 (17:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2015 21:39:36 +0000 (23:39 +0200)
This patch exports the get_reason() function.

include/proto/proto_http.h

index dfa094ac18f96360b2d746530f2eb4b7969618e0..7622cb5959945a4d8f74d3ad9906a6bc19f2b16d 100644 (file)
@@ -113,6 +113,7 @@ unsigned int http_get_hdr(const struct http_msg *msg, const char *hname, int hle
                          struct hdr_idx *idx, int occ,
                          struct hdr_ctx *ctx, char **vptr, int *vlen);
 char *http_get_path(struct http_txn *txn);
+const char *get_reason(unsigned int status);
 
 struct http_txn *http_alloc_txn(struct stream *s);
 void http_init_txn(struct stream *s);