skip authorization for websockets, since mobile safari does not support it

This commit is contained in:
SuperBFG7 2015-10-15 15:46:28 +02:00
parent bde33d5aa7
commit 686eb4f5d2
1 changed files with 2 additions and 1 deletions

View File

@ -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 ) {