diff options
author | waker <wakeroid@gmail.com> | 2011-09-24 13:01:30 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-09-24 13:01:30 +0200 |
commit | 4953fd594353cde2030ce8ad20d9093524fa305a (patch) | |
tree | 0d453fb9264e31069ea96f1941951375fd5829a3 | |
parent | 2e09e1372327a72a4347b506c0c38d2dbe23fd0e (diff) |
always accept new content-length on request without checks
-rw-r--r-- | plugins/vfs_curl/vfs_curl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/vfs_curl/vfs_curl.c b/plugins/vfs_curl/vfs_curl.c index 37ba65e6..0e798467 100644 --- a/plugins/vfs_curl/vfs_curl.c +++ b/plugins/vfs_curl/vfs_curl.c @@ -475,12 +475,9 @@ http_content_header_handler (void *ptr, size_t size, size_t nmemb, void *stream) free (fp->content_type); } fp->content_type = strdup (value); - fp->length = -1; } else if (!strcasecmp (key, "Content-Length")) { - if (fp->length < 0) { - fp->length = atoi (value); - } + fp->length = atoi (value); } else if (!strcasecmp (key, "icy-name")) { if (fp->track) { |