diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -219,10 +219,10 @@ handle_request_cb (SoupServer *server, goto PUT; else if (msg->method == SOUP_METHOD_GET) goto GET; - else - /* We return NOT_IMPLEMENTED for this - * when we get the request headers */ - g_assert_not_reached (); + else { + soup_message_set_status (msg, SOUP_STATUS_NOT_IMPLEMENTED); + return; + } PUT: { @@ -545,10 +545,10 @@ PUT: { case SOUP_ENCODING_UNRECOGNIZED: case SOUP_ENCODING_NONE: case SOUP_ENCODING_BYTERANGES: - g_critical ("Unknown encoding!\n"); + g_critical ("Unknown encoding!"); goto out; default: - g_assert_not_reached (); + g_critical ("Unsupported encoding?"); } /* Whether the incoming stream is chunked or fixed length, we want to @@ -656,9 +656,7 @@ request_read_cb (SoupServer *server, else if (msg->method == SOUP_METHOD_GET) goto GET; else - /* We return NOT_IMPLEMENTED for this - * when we get the request headers */ - g_assert_not_reached (); + return; PUT: { |