input/curl: enable https
This commit is contained in:
parent
8929f88e6d
commit
3330aa6f6a
1
NEWS
1
NEWS
@ -2,6 +2,7 @@ ver 0.18 (2012/??/??)
|
|||||||
* protocol:
|
* protocol:
|
||||||
- new command "toggleoutput"
|
- new command "toggleoutput"
|
||||||
* innput:
|
* innput:
|
||||||
|
- curl: enable https
|
||||||
- soup: plugin removed
|
- soup: plugin removed
|
||||||
* decoder:
|
* decoder:
|
||||||
- adplug: new decoder plugin using libadplug
|
- adplug: new decoder plugin using libadplug
|
||||||
|
@ -1083,7 +1083,8 @@ static struct input_stream *
|
|||||||
input_curl_open(const char *url, Mutex &mutex, Cond &cond,
|
input_curl_open(const char *url, Mutex &mutex, Cond &cond,
|
||||||
Error &error)
|
Error &error)
|
||||||
{
|
{
|
||||||
if (strncmp(url, "http://", 7) != 0)
|
if ((strncmp(url, "http://", 7) != 0) &&
|
||||||
|
(strncmp(url, "https://", 8) != 0))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
struct input_curl *c = new input_curl(url, mutex, cond);
|
struct input_curl *c = new input_curl(url, mutex, cond);
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
static const char *remoteUrlPrefixes[] = {
|
static const char *remoteUrlPrefixes[] = {
|
||||||
#if defined(ENABLE_CURL)
|
#if defined(ENABLE_CURL)
|
||||||
"http://",
|
"http://",
|
||||||
|
"https://",
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_MMS
|
#ifdef ENABLE_MMS
|
||||||
"mms://",
|
"mms://",
|
||||||
|
Loading…
Reference in New Issue
Block a user