From: Juho Vähä-Herttua Date: Mon, 24 Mar 2014 19:47:34 +0000 (+0200) Subject: Add a clarifying comment to the last commit X-Git-Tag: upstream/0.9.0~4^2~5 X-Git-Url: https://git.piment-noir.org/?p=deb_shairplay.git;a=commitdiff_plain;h=8c3f8f7a7c12c3dbd1da30dc37bab2797024c3b3 Add a clarifying comment to the last commit --- 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");