diff --git a/src/HttpServer.c b/src/HttpServer.c index 7d48d98..d96367a 100644 --- a/src/HttpServer.c +++ b/src/HttpServer.c @@ -65,7 +65,7 @@ QueueConnection(HttpServer * server, int fd) return 0; } - fp = fdopen(fd, "rw"); + fp = fdopen(fd, "r+"); if (!fp) { return 0;