[ostree] http: set the HTTP status on directory listing



commit 92c5a9f99211c10b506294164e4bfd1ff66639c7
Author: Giuseppe Scrivano <gscrivan redhat com>
Date:   Tue Oct 7 13:10:08 2014 +0200

    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>

 src/ostree/ot-builtin-trivial-httpd.c |    1 +
 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 e8c06e3..5ca1e4b 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);
             }
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]