Updated to current mtstdopen interface. master
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 23 Feb 2019 17:01:41 +0000 (18:01 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 23 Feb 2019 17:01:41 +0000 (18:01 +0100)
statserve.c

index 1801b95..50719df 100644 (file)
@@ -53,7 +53,7 @@ static void serve(struct muth *muth, va_list args)
        simpleerror(fd, 404, "Resource not found", "The resource %s was not found", htmlquote(req->rest));
        goto out;
     }
-    out = mtstdopen(fd, 1, 60, "r+");
+    out = mtstdopen(fd, 1, 60, "r+", NULL);
     if(cached(req, f)) {
        fprintf(out, "HTTP/1.1 304 Not Modified\n");
        fprintf(out, "Content-Length: 0\n");