mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Don't reject daap login if no user-agent (for Roomie remote)
This commit is contained in:
parent
6decdf4eaf
commit
21fe5ac3a6
@ -779,15 +779,7 @@ daap_reply_login(struct evhttp_request *req, struct evbuffer *evbuf, char **uri,
|
||||
}
|
||||
|
||||
ua = evhttp_find_header(req->input_headers, "User-Agent");
|
||||
if (!ua)
|
||||
{
|
||||
DPRINTF(E_LOG, L_DAAP, "No User-Agent header, rejecting login request\n");
|
||||
|
||||
evhttp_send_error(req, 403, "Forbidden");
|
||||
return;
|
||||
}
|
||||
|
||||
if (strncmp(ua, "Remote", strlen("Remote")) == 0)
|
||||
if (ua && (strncmp(ua, "Remote", strlen("Remote")) == 0))
|
||||
{
|
||||
guid = evhttp_find_header(query, "pairing-guid");
|
||||
if (!guid)
|
||||
|
Loading…
Reference in New Issue
Block a user