From 8c3f8f7a7c12c3dbd1da30dc37bab2797024c3b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juho=20V=C3=A4h=C3=A4-Herttua?= Date: Mon, 24 Mar 2014 21:47:34 +0200 Subject: [PATCH] Add a clarifying comment to the last commit --- src/lib/raop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- 2.34.1