make origin optional on server
authorAndy Green <andy@warmcat.com>
Sat, 26 Feb 2011 10:28:15 +0000 (10:28 +0000)
committerAndy Green <andy@warmcat.com>
Sat, 26 Feb 2011 10:28:15 +0000 (10:28 +0000)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/handshake.c

index 90219a2..d1df77a 100644 (file)
@@ -240,8 +240,7 @@ handshake_0405(struct libwebsocket *wsi)
        int nonce_len;
        int accept_len;
 
-       if (!wsi->utf8_token[WSI_TOKEN_SWORIGIN].token_len ||
-           !wsi->utf8_token[WSI_TOKEN_HOST].token_len ||
+       if (!wsi->utf8_token[WSI_TOKEN_HOST].token_len ||
            !wsi->utf8_token[WSI_TOKEN_KEY].token_len) {
                debug("handshake_04 missing pieces\n");
                /* completed header processing, but missing some bits */