mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-17 08:17:42 -04:00
from trunk: make RPC replies use application/octet-stream
svn:r695
This commit is contained in:
parent
9e92909cf0
commit
f817b5ffd7
@ -4,6 +4,7 @@ Changes in 1.4.3-stable:
|
||||
o Do not free the kqop file descriptor in other processes, also allow it to be 0; from Andrei Nigmatulin
|
||||
o make event_rpcgen.py generate code include event-config.h; reported by Sam Banks.
|
||||
o make event methods static so that they are not exported; from Andrei Nigmatulin
|
||||
o make RPC replies use application/octet-stream as mime type
|
||||
|
||||
Changes in 1.4.2-rc:
|
||||
o remove pending timeouts on event_base_free()
|
||||
|
6
evrpc.c
6
evrpc.c
@ -353,6 +353,12 @@ evrpc_request_done(struct evrpc_req_generic* rpc_state)
|
||||
req, data) == -1)
|
||||
goto error;
|
||||
|
||||
/* on success, we are going to transmit marshaled binary data */
|
||||
if (evhttp_find_header(req->output_headers, "Content-Type") == NULL) {
|
||||
evhttp_add_header(req->output_headers,
|
||||
"Content-Type", "application/octet-stream");
|
||||
}
|
||||
|
||||
evhttp_send_reply(req, HTTP_OK, "OK", data);
|
||||
|
||||
evbuffer_free(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user