From 686eb4f5d2d9cb61f6611a1bf80e5f44a072b710 Mon Sep 17 00:00:00 2001 From: SuperBFG7 Date: Thu, 15 Oct 2015 15:46:28 +0200 Subject: [PATCH] skip authorization for websockets, since mobile safari does not support it --- src/ympd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ympd.c b/src/ympd.c index 15fa1f9..7c63167 100644 --- 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 ) {