This is just a minor change to ease integrartion of the HTX.
int http_process_request(struct stream *s, struct channel *req, int an_bit);
int http_process_tarpit(struct stream *s, struct channel *req, int an_bit);
int http_wait_for_request_body(struct stream *s, struct channel *req, int an_bit);
-int http_send_name_header(struct http_txn *txn, struct proxy* be, const char* svr_name);
+int http_send_name_header(struct stream *s, struct proxy* be, const char* svr_name);
int http_wait_for_response(struct stream *s, struct channel *rep, int an_bit);
int http_process_res_common(struct stream *s, struct channel *rep, int an_bit, struct proxy *px);
int http_request_forward_body(struct stream *s, struct channel *req, int an_bit);
* for being forwarded. This is the reason why it rewinds the buffer before
* proceeding.
*/
-int http_send_name_header(struct http_txn *txn, struct proxy* be, const char* srv_name) {
+int http_send_name_header(struct stream *s, struct proxy* be, const char* srv_name) {
struct hdr_ctx ctx;
-
+ struct http_txn *txn = s->txn;
char *hdr_name = be->server_id_hdr_name;
int hdr_name_len = be->server_id_hdr_len;
struct channel *chn = txn->req.chn;
(s->be->server_id_hdr_name != NULL) &&
(s->be->mode == PR_MODE_HTTP) &&
objt_server(s->target)) {
- http_send_name_header(s->txn, s->be, objt_server(s->target)->id);
+ http_send_name_header(s, s->be, objt_server(s->target)->id);
}
srv = objt_server(s->target);