Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Radio plugin: make partially compatible with new API
[src/app-framework-binder.git]
/
src
/
afb-hsrv.c
diff --git
a/src/afb-hsrv.c
b/src/afb-hsrv.c
index
b5e6887
..
977aea6
100644
(file)
--- a/
src/afb-hsrv.c
+++ b/
src/afb-hsrv.c
@@
-29,6
+29,7
@@
#include "local-def.h"
#include "afb-method.h"
#include "afb-hreq.h"
#include "local-def.h"
#include "afb-method.h"
#include "afb-hreq.h"
+#include "afb-hsrv.h"
#include "afb-websock.h"
#include "afb-apis.h"
#include "afb-req-itf.h"
#include "afb-websock.h"
#include "afb-apis.h"
#include "afb-req-itf.h"
@@
-150,12
+151,9
@@
static int afb_hreq_websocket_switch(struct afb_hreq *hreq, void *data)
return 0;
if (!later) {
return 0;
if (!later) {
- struct afb_websock *ws = afb_websock_create(hreq->connection);
- if (ws == NULL) {
- /* TODO */
- } else {
- /* TODO */
- }
+ struct afb_websock *ws = afb_websock_create(hreq);
+ if (ws != NULL)
+ hreq->upgrade = 1;
}
return 1;
}
}
return 1;
}