Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
1de19b92
Commit
1de19b92
authored
Oct 24, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/curl: call StartRequest() after setting CURLOPT_RANGE
It's not possible to set CURL options after curl_easy_perform(), and thus the CURLOPT_RANGE had no effect.
parent
ff162b5a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+2
-0
CurlInputPlugin.cxx
src/input/plugins/CurlInputPlugin.cxx
+2
-1
No files found.
NEWS
View file @
1de19b92
ver 0.20.12 (not yet released)
* input
- curl: fix seeking
ver 0.20.11 (2017/10/18)
* storage
...
...
src/input/plugins/CurlInputPlugin.cxx
View file @
1de19b92
...
...
@@ -409,7 +409,6 @@ CurlInputStream::SeekInternal(offset_type new_offset)
}
InitEasy
();
StartRequest
();
/* send the "Range" header */
...
...
@@ -423,6 +422,8 @@ CurlInputStream::SeekInternal(offset_type new_offset)
#endif
request
->
SetOption
(
CURLOPT_RANGE
,
range
);
}
StartRequest
();
}
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment