make origin optional on server
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
08d33926eb
commit
7942dfe282
1 changed files with 1 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue