From 92c5a9f99211c10b506294164e4bfd1ff66639c7 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 7 Oct 2014 13:10:08 +0200 Subject: http: set the HTTP status on directory listing Fix a HTTP response header like the following: HTTP/1.1 0 (null) Server: ostree-httpd libsoup/2.48.0 Date: Tue, 07 Oct 2014 11:19:22 GMT Content-Type: text/html Content-Length: 12533 Signed-off-by: Giuseppe Scrivano --- src/ostree/ot-builtin-trivial-httpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ostree/ot-builtin-trivial-httpd.c b/src/ostree/ot-builtin-trivial-httpd.c index e8c06e37..5ca1e4bf 100644 --- a/src/ostree/ot-builtin-trivial-httpd.c +++ b/src/ostree/ot-builtin-trivial-httpd.c @@ -205,6 +205,7 @@ do_get (OtTrivialHttpd *self, soup_message_set_response (msg, "text/html", SOUP_MEMORY_TAKE, listing->str, listing->len); + soup_message_set_status (msg, SOUP_STATUS_OK); g_string_free (listing, FALSE); } } -- cgit v1.2.1