]> granicus.if.org Git - libevent/commitdiff
test: http/*: update expected HTTP codes for body exceeds `max_body_size`
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 15 Feb 2016 00:46:20 +0000 (03:46 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 9 Mar 2016 15:52:52 +0000 (18:52 +0300)
test/regress_http.c

index d7fb4309ae54f24ce7908af5fad38cd020f9eb30..1f326de6fa2d87a825b4893d811445a11add78c6 100644 (file)
@@ -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) {