mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
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>
This commit is contained in:
parent
7b0e70b72f
commit
92c5a9f992
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user