Mercurial > audlegacy-plugins
diff src/neon/neon.c @ 2114:0d77ec0c71d4
Send any query strings along with the HTTP request.
Reported by: Joel Klinghed <the_jk -at- yahoo.com>; Bugzilla #31.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sat, 20 Oct 2007 19:33:44 -0500 |
parents | b8fbf081bdfa |
children | b8da6a0b0da2 |
line wrap: on
line diff
--- a/src/neon/neon.c Fri Oct 19 06:24:08 2007 -0500 +++ b/src/neon/neon.c Sat Oct 20 19:33:44 2007 -0500 @@ -477,7 +477,14 @@ _ENTER; - handle->request = ne_request_create(handle->session, "GET", handle->purl->path); + if (handle->purl->query && *(handle->purl->query)) { + gchar *tmp = g_strdup_printf("%s?%s", handle->purl->path, handle->purl->query); + handle->request = ne_request_create(handle->session, "GET", tmp); + g_free(tmp); + } else { + handle->request = ne_request_create(handle->session, "GET", handle->purl->path); + } + ne_print_request_header(handle->request, "Range", "bytes=%ld-", startbyte); ne_print_request_header(handle->request, "Icy-MetaData", "1");