diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input_curl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input_curl.c b/src/input_curl.c index 20b26a9ed..7c98cad7c 100644 --- a/src/input_curl.c +++ b/src/input_curl.c @@ -595,6 +595,14 @@ input_curl_seek(struct input_stream *is, off_t offset, int whence) input_curl_easy_free(c); + if (is->offset == is->size) { + /* seek to EOF: simulate empty result; avoid + triggering a "416 Requested Range Not Satisfiable" + response */ + c->eof = true; + return true; + } + ret = input_curl_easy_init(is); if (!ret) return false; |