projects
/
profile
/
ivi
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c42c4a
)
Allow extensions when no protocol was specified.
47/2847/1
author
David Galeano
<davidgaleano@turbulenz.biz>
Wed, 9 Jan 2013 11:49:50 +0000
(19:49 +0800)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:22 +0000
(13:01 -0800)
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
ee20327
..
6fa27aa
100644
(file)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-1213,7
+1213,7
@@
select_protocol:
wsi->c_callback = wsi->protocol->callback;
free(wsi->c_protocol);
- goto check_
accept
;
+ goto check_
extensions
;
}
while (*pc && !okay) {
@@
-1265,6
+1265,8
@@
select_protocol:
}
+check_extensions:
+
/* instantiate the accepted extensions */
if (!wsi->utf8_token[WSI_TOKEN_EXTENSIONS].token_len) {