[libsoup] Remove redundant check



commit 1e22c67539b15e54711c431e0c34bef2afe62fb4
Author: Paolo Borelli <pborelli gnome org>
Date:   Wed Jul 15 18:40:07 2015 +0200

    Remove redundant check
    
    The same thing is checked the line before

 libsoup/soup-server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-server.c b/libsoup/soup-server.c
index 77b2142..a1fefeb 100644
--- a/libsoup/soup-server.c
+++ b/libsoup/soup-server.c
@@ -1387,7 +1387,7 @@ got_body (SoupMessage *msg, SoupClientContext *client)
        if (msg->status_code != 0)
                return;
 
-       if (handler->websocket_callback && msg->status_code == 0) {
+       if (handler->websocket_callback) {
                if (soup_websocket_server_process_handshake (msg,
                                                             handler->websocket_origin,
                                                             handler->websocket_protocols)) {


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