From 694642bc7bb676d945b79ef3e742c2c05313df75 Mon Sep 17 00:00:00 2001
From: Robin Watts <robin.watts@artifex.com>
Date: Wed, 4 May 2016 13:13:45 +0100
Subject: 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.
---
 platform/x11/pdfapp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'platform')

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)
-- 
cgit v1.2.3