projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da3f6ff
)
test client have u option also reject deflate stream
author
Andy Green
<andy.green@linaro.org>
Sat, 16 Mar 2013 04:34:36 +0000
(12:34 +0800)
committer
Andy Green
<andy.green@linaro.org>
Sat, 16 Mar 2013 04:43:22 +0000
(12:43 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
test-server/test-client.c
patch
|
blob
|
history
diff --git
a/test-server/test-client.c
b/test-server/test-client.c
index
d25e31f
..
7b32cb1
100644
(file)
--- a/
test-server/test-client.c
+++ b/
test-server/test-client.c
@@
-90,6
+90,10
@@
callback_dumb_increment(struct libwebsocket_context *this,
fprintf(stderr, "denied deflate-stream extension\n");
return 1;
}
+ if ((strcmp(in, "deflate-frame") == 0) && deny_deflate) {
+ fprintf(stderr, "denied deflate-frame extension\n");
+ return 1;
+ }
if ((strcmp(in, "x-google-mux") == 0) && deny_mux) {
fprintf(stderr, "denied x-google-mux extension\n");
return 1;