From: Christopher Faulet Date: Wed, 27 May 2020 13:24:22 +0000 (+0200) Subject: MINOR: http-ana: Make the function http_reply_to_htx() public X-Git-Tag: v2.2-dev9~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae43b6c446ed99735e8ab2217ff35ca170649ed6;p=thirdparty%2Fhaproxy.git MINOR: http-ana: Make the function http_reply_to_htx() public This function may be used from anywhere to convert an HTTP reply to an HTX message. --- diff --git a/include/proto/http_ana.h b/include/proto/http_ana.h index c226b12545..894357688e 100644 --- a/include/proto/http_ana.h +++ b/include/proto/http_ana.h @@ -52,6 +52,7 @@ void http_server_error(struct stream *s, struct stream_interface *si, int err, i void http_reply_and_close(struct stream *s, short status, struct http_reply *msg); void http_return_srv_error(struct stream *s, struct stream_interface *si); struct http_reply *http_error_message(struct stream *s); +int http_reply_to_htx(struct stream *s, struct htx *htx, struct http_reply *reply); int http_reply_message(struct stream *s, struct http_reply *reply); int http_forward_proxy_resp(struct stream *s, int final); diff --git a/src/http_ana.c b/src/http_ana.c index f5add7d980..f7da268210 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -4658,7 +4658,7 @@ struct http_reply *http_error_message(struct stream *s) * errorfile, an raw file or a log-format string is used. On success, it returns * 0. If an error occurs -1 is returned. */ -static int http_reply_to_htx(struct stream *s, struct htx *htx, struct http_reply *reply) +int http_reply_to_htx(struct stream *s, struct htx *htx, struct http_reply *reply) { struct buffer *errmsg; struct htx_sl *sl;