From addf2b90ae94ad53c90ea5031a70c3037bea1a2f Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 15 Feb 2016 03:46:20 +0300 Subject: [PATCH] test: http/*: update expected HTTP codes for body exceeds `max_body_size` --- test/regress_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regress_http.c b/test/regress_http.c index d7fb4309..1f326de6 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -3837,7 +3837,7 @@ http_data_length_constraints_test(void *arg) event_base_dispatch(data->base); evhttp_set_max_body_size(http, sizeof(long_str)-2); - req = evhttp_request_new(http_data_length_constraints_test_done, data->base); + req = evhttp_request_new(http_large_entity_test_done, data->base); evhttp_add_header(evhttp_request_get_output_headers(req), "Host", "somehost"); evbuffer_add_printf(evhttp_request_get_output_buffer(req), "%s", long_str); if (evhttp_make_request(evcon, req, EVHTTP_REQ_POST, "/") == -1) { -- 2.40.0