from trunk: make RPC replies use application/octet-stream

svn:r695
This commit is contained in:
Niels Provos 2008-03-30 21:09:38 +00:00
parent 9e92909cf0
commit f817b5ffd7
2 changed files with 8 additions and 1 deletions

View File

@ -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()

View File

@ -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);