mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-23 13:27:18 +00:00
skip authorization for websockets, since mobile safari does not support it
This commit is contained in:
parent
bde33d5aa7
commit
686eb4f5d2
@ -62,7 +62,8 @@ static int server_callback(struct mg_connection *c, enum mg_event ev) {
|
|||||||
return callback_http(c);
|
return callback_http(c);
|
||||||
#endif
|
#endif
|
||||||
case MG_AUTH:
|
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;
|
return MG_TRUE;
|
||||||
else {
|
else {
|
||||||
if ( (fp = fopen(gpass, "r")) != NULL ) {
|
if ( (fp = fopen(gpass, "r")) != NULL ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user