mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-13 15:04:42 +00:00
MINOR: stream: Remove tests on the option 'http-use-htx' in stream_new()
All streams created for an HTTP proxy must now use the HTX internal resprentation. So, it is no more necessary to test the flag PR_O2_USE_HTX. It means a stream is an HTX stream if the frontend is an HTTP proxy or if the frontend multiplexer, if any, set the flag MX_FL_HTX.
This commit is contained in:
parent
0d79c67103
commit
3494c63770
@ -246,8 +246,8 @@ struct stream *stream_new(struct session *sess, enum obj_type *origin)
|
||||
if (cs->conn->mux->flags & MX_FL_HTX)
|
||||
s->flags |= SF_HTX;
|
||||
}
|
||||
/* Set SF_HTX flag for HTX frontends. */
|
||||
if (sess->fe->mode == PR_MODE_HTTP && sess->fe->options2 & PR_O2_USE_HTX)
|
||||
/* Set SF_HTX flag for HTTP frontends. */
|
||||
if (sess->fe->mode == PR_MODE_HTTP)
|
||||
s->flags |= SF_HTX;
|
||||
|
||||
/* attach the incoming connection to the stream interface now. */
|
||||
|
Loading…
Reference in New Issue
Block a user