summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-trivial-httpd.c
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2014-10-07 13:10:08 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2014-10-07 13:19:36 +0200
commit92c5a9f99211c10b506294164e4bfd1ff66639c7 (patch)
tree61d5f6fcb4726cc42b33873f969f96fe928c0bfe /src/ostree/ot-builtin-trivial-httpd.c
parent7b0e70b72fb1d7307a018a72dbf4a5c9bff9a235 (diff)
downloadostree-92c5a9f99211c10b506294164e4bfd1ff66639c7.tar.gz
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 <gscrivan@redhat.com>
Diffstat (limited to 'src/ostree/ot-builtin-trivial-httpd.c')
-rw-r--r--src/ostree/ot-builtin-trivial-httpd.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}