summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-04 13:13:45 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-04 20:35:17 +0100
commit694642bc7bb676d945b79ef3e742c2c05313df75 (patch)
tree87727c978ace8cc49a011978b37650954ca5b607 /platform/x11
parentafe9bc8f64fedf69014a6d9f8efe2731778d7fe2 (diff)
downloadmupdf-694642bc7bb676d945b79ef3e742c2c05313df75.tar.xz
Update mupdf-curl to cope with https.
Spot https and pass to curl. If curl isn't built with https support we'll fail, but then we'd fail anyway without trying.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/pdfapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index 17696a04..ab5b2e8d 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -288,7 +288,7 @@ void pdfapp_open_progressive(pdfapp_t *app, char *filename, int reload, int bps)
}
#ifdef HAVE_CURL
- if (!strncmp(filename, "http://", 7))
+ if (!strncmp(filename, "http://", 7) || !strncmp(filename, "https://", 8))
{
app->stream = fz_stream_from_curl(ctx, filename, pdfapp_more_data, app);
while (1)