projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bde33d5
)
skip authorization for websockets, since mobile safari does not support it
author
SuperBFG7
<daniel@despite.ch>
Thu, 15 Oct 2015 13:46:28 +0000
(15:46 +0200)
committer
SuperBFG7
<daniel@despite.ch>
Thu, 15 Oct 2015 13:46:28 +0000
(15:46 +0200)
src/ympd.c
patch
|
blob
|
history
diff --git
a/src/ympd.c
b/src/ympd.c
index
15fa1f9
..
7c63167
100644
(file)
--- a/
src/ympd.c
+++ b/
src/ympd.c
@@
-62,7
+62,8
@@
static int server_callback(struct mg_connection *c, enum mg_event ev) {
return callback_http(c);
#endif
case MG_AUTH:
- if ( gpass == NULL )
+ // no auth for websockets since mobile safari does not support it
+ if ( (gpass == NULL) || (c->is_websocket) )
return MG_TRUE;
else {
if ( (fp = fopen(gpass, "r")) != NULL ) {