mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-15 23:35:02 -04:00
Remove need for http_compat.h in http tests
This commit is contained in:
parent
0b137f452e
commit
985430aed1
@ -54,7 +54,6 @@
|
|||||||
|
|
||||||
#include "event2/event.h"
|
#include "event2/event.h"
|
||||||
#include "event2/http.h"
|
#include "event2/http.h"
|
||||||
#include "event2/http_compat.h"
|
|
||||||
#include "event2/buffer.h"
|
#include "event2/buffer.h"
|
||||||
#include "event2/bufferevent.h"
|
#include "event2/bufferevent.h"
|
||||||
#include "log-internal.h"
|
#include "log-internal.h"
|
||||||
@ -347,7 +346,7 @@ http_chunked_cb(struct evhttp_request *req, void *arg)
|
|||||||
state->req = req;
|
state->req = req;
|
||||||
state->base = arg;
|
state->base = arg;
|
||||||
|
|
||||||
if (strcmp(evhttp_request_uri(req), "/streamed") == 0) {
|
if (strcmp(evhttp_request_get_uri(req), "/streamed") == 0) {
|
||||||
evhttp_add_header(evhttp_request_get_output_headers(req), "Content-Length", "39");
|
evhttp_add_header(evhttp_request_get_output_headers(req), "Content-Length", "39");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user