[gupnp: 19/25] context: Remove useless check in host_path_handler




commit f6165e595d627301854e988e6b9f5336f025b373
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 1762f82..390f17d 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]