repositories
/
deb_shairplay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e67957
)
Add a clarifying comment to the last commit
author
Juho Vähä-Herttua
<juhovh@iki.fi>
Mon, 24 Mar 2014 19:47:34 +0000
(21:47 +0200)
committer
Juho Vähä-Herttua
<juhovh@iki.fi>
Mon, 24 Mar 2014 19:47:34 +0000
(21:47 +0200)
src/lib/raop.c
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/raop.c
b/src/lib/raop.c
index a58e92f4ea05c03c9e724c1ba9e5d46904debe4b..0c640b5bb67d85535607f078b148ce0dcb2f0358 100644
(file)
--- 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");