diff --git a/src/proto_http.c b/src/proto_http.c index 35f86ef1d..f77d7bc48 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -2886,6 +2886,7 @@ int http_process_request(struct stream *s, struct channel *req, int an_bit) if (http_parse_reqline(&txn->req, HTTP_MSG_RQMETH, cur_ptr, cur_end + 1, NULL, NULL) == NULL) goto return_bad_req; } + conn->target = &s->be->obj_type; } /* diff --git a/src/proto_htx.c b/src/proto_htx.c index 59b0ff975..620f81b75 100644 --- a/src/proto_htx.c +++ b/src/proto_htx.c @@ -805,6 +805,7 @@ int htx_process_request(struct stream *s, struct channel *req, int an_bit) * insignificant. */ istcpy(&uri, (path.len ? path : ist("/")), uri.len); + conn->target = &s->be->obj_type; } /*