Imported Debian patch 0.9.0-6~trusty
[deb_shairplay.git] / debian / patches / passwd-auth-with-itunes.patch
diff --git a/debian/patches/passwd-auth-with-itunes.patch b/debian/patches/passwd-auth-with-itunes.patch
new file mode 100644 (file)
index 0000000..0a91596
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/src/lib/raop.c.orig      2013-04-17 15:17:49.000000000 +0200
++++ b/src/lib/raop.c   2014-03-24 23:22:30.000000000 +0100
+@@ -139,7 +139,7 @@
+       }
+       res = http_response_init("RTSP/1.0", 200, "OK");
+-      if (strlen(raop->password)) {
++      if (strcmp(method, "OPTIONS") && strlen(raop->password)) {
+               const char *authorization;
+               authorization = http_request_get_header(request, "Authorization");
+