Implement URI encoding quirk for iTunes and Roku

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.
This commit is contained in:
Julien BLACHE
2009-05-02 17:20:33 +02:00
parent 09ef188d90
commit c9868175fd
4 changed files with 110 additions and 19 deletions

View File

@@ -9,6 +9,9 @@
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);