[gupnp/wip/phako/libsoup3: 4/6] context: Remove useless check in host_path_handler




commit 7f84bf85aff6be2d2e32182c2eabb8e400894d89
Author: Jens Georg <mail jensge org>
Date:   Tue Dec 28 10:43:49 2021 +0100

    context: Remove useless check in host_path_handler

 libgupnp/gupnp-context.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index c2ce418..2b73239 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -1105,10 +1105,7 @@ host_path_handler (G_GNUC_UNUSED SoupServer *server,
                 g_free (length);
 
         } else {
-                soup_server_message_set_status (msg,
-                                                SOUP_STATUS_METHOD_NOT_ALLOWED,
-                                                "Method not allowed");
-
+                g_assert_not_reached ();
                 goto DONE;
         }
 


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