X-Git-Url: https://git.piment-noir.org/?p=deb_shairplay.git;a=blobdiff_plain;f=src%2Flib%2Fraop.c;h=0c640b5bb67d85535607f078b148ce0dcb2f0358;hp=a58e92f4ea05c03c9e724c1ba9e5d46904debe4b;hb=fb43099dce2e0f62bb663a5f4a316510dc5dc4c7;hpb=8e6795779558d2828aef14078fefbcadd5323fa6 diff --git a/src/lib/raop.c b/src/lib/raop.c index a58e92f..0c640b5 100644 --- a/src/lib/raop.c +++ b/src/lib/raop.c @@ -140,7 +140,9 @@ conn_request(void *ptr, http_request_t *request, http_response_t **response) } res = http_response_init("RTSP/1.0", 200, "OK"); - if (strcmp(method, "OPTIONS") && strlen(raop->password)) { + + /* We need authorization for everything else than OPTIONS request */ + if (strcmp(method, "OPTIONS") != 0 && strlen(raop->password)) { const char *authorization; authorization = http_request_get_header(request, "Authorization");