diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-03-30 13:55:50 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-03-30 13:55:50 +0200 |
commit | ca208671cc79bbc05c574df788035878e5d39382 (patch) | |
tree | f5a61c22b3d650e20b21295706320602da1f3d19 /src/afb-websock.c | |
parent | 8ca3d16606a99ef91d01a623dbe5ce1331688953 (diff) |
refactoring
Change-Id: I8dd46cf7fa57962e20e02f0fe34b3ffaa4c94f08
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-websock.c')
-rw-r--r-- | src/afb-websock.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/afb-websock.c b/src/afb-websock.c index 90148ecf..b6056adc 100644 --- a/src/afb-websock.c +++ b/src/afb-websock.c @@ -152,13 +152,11 @@ int afb_websock_check(struct afb_hreq *hreq, int *later) /* is an upgrade to websocket ? */ upgrade = afb_hreq_get_header(hreq, MHD_HTTP_HEADER_UPGRADE); -printf("upgrade %s\n", upgrade); if (upgrade == NULL || strcasecmp(upgrade, websocket_s)) return 0; /* is a connection for upgrade ? */ connection = afb_hreq_get_header(hreq, MHD_HTTP_HEADER_CONNECTION); -printf("connection %s\n", connection); if (connection == NULL || !headerhas (connection, MHD_HTTP_HEADER_UPGRADE)) return 0; @@ -169,8 +167,6 @@ printf("connection %s\n", connection); /* has a key and a version ? */ key = afb_hreq_get_header(hreq, sec_websocket_key_s); version = afb_hreq_get_header(hreq, sec_websocket_version_s); -printf("key %s\n", key); -printf("version %s\n", connection); if (key == NULL || version == NULL) return 0; |