mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-02 10:33:23 -05:00
c9868175fd
iTunes and Roku devices do not encode + as %2B in the query string and do not encode space as + either in the query string (though at least the Roku encode space as %20 everywhere). This needs to be worked around or browse queries fail to parse because + was decoded as space when the query really needs a + character.
25 lines
362 B
C
25 lines
362 B
C
|
|
#ifndef __HTTPD_H__
|
|
#define __HTTPD_H__
|
|
|
|
#include <event.h>
|
|
#include <evhttp.h>
|
|
|
|
|
|
void
|
|
httpd_stream_file(struct evhttp_request *req, int id);
|
|
|
|
char *
|
|
httpd_fixup_uri(struct evhttp_request *req);
|
|
|
|
int
|
|
httpd_basic_auth(struct evhttp_request *req, char *user, char *passwd, char *realm);
|
|
|
|
int
|
|
httpd_init(void);
|
|
|
|
void
|
|
httpd_deinit(void);
|
|
|
|
#endif /* !__HTTPD_H__ */
|