]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http-ana: Make the function http_reply_to_htx() public
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 May 2020 13:24:22 +0000 (15:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 May 2020 13:07:20 +0000 (15:07 +0200)
This function may be used from anywhere to convert an HTTP reply to an HTX
message.

include/proto/http_ana.h
src/http_ana.c

index c226b1254587a3c4955fa37b7eb8b881b3d946c2..894357688e1910f09c450d8a8ce76b561dbb38b7 100644 (file)
@@ -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);
 
index f5add7d9809495e68d1569354cf5e6f60cfd92f3..f7da2682101e1582461134dac1574ed1cf355522 100644 (file)
@@ -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;