diff options
author | Simon Rettberg | 2017-10-30 21:42:33 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-10-30 21:42:33 +0100 |
commit | 6b43ff5750100670c10e5fa6b90db3b2d4a31dd6 (patch) | |
tree | 3f9cdeca886e38d45059a6743c9784847fc9eaf6 /src/server | |
parent | [SERVER] Add AFL support (diff) | |
download | dnbd3-6b43ff5750100670c10e5fa6b90db3b2d4a31dd6.tar.gz dnbd3-6b43ff5750100670c10e5fa6b90db3b2d4a31dd6.tar.xz dnbd3-6b43ff5750100670c10e5fa6b90db3b2d4a31dd6.zip |
[SERVER] rpc: encoding of our reply is utf-8, add to reply header
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/rpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/rpc.c b/src/server/rpc.c index 97cca9e..f01121c 100644 --- a/src/server/rpc.c +++ b/src/server/rpc.c @@ -254,7 +254,7 @@ static bool sendReply(int sock, const char *status, const char *ctype, const cha const char *connection = ( keepAlive == HTTP_KEEPALIVE ) ? "Keep-Alive" : "Close"; int hlen = snprintf(buffer, sizeof(buffer), "HTTP/1.1 %s\r\n" "Connection: %s\r\n" - "Content-Type: %s\r\n" + "Content-Type: %s; charset=utf-8\r\n" "Content-Length: %u\r\n" "\r\n", status, connection, ctype, (unsigned int)plen ); |