aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2020-11-18 09:45:28 +0100
committerOmar Polo <op@omarpolo.com>2020-11-18 09:45:28 +0100
commitc603f1260de9fb2cc81dd886a5ddb8e43caa9d0c (patch)
tree360034e278c34968d40b295c6f6517d7beaa636c
parentdd3895586f02713b2ef058190d7cade1beb39fce (diff)
fix bug introduced in last version regarding full URLs1.3.2
gemini://example.com was incorrectly parsed.
-rw-r--r--ChangeLog5
-rw-r--r--gmid.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 874db7e..740b34e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2020-11-18 Omar Polo <op@omarpolo.com>
+ * 1.3.2 tagged
+
+ * gmid.c (url_after_proto): fix bug introduced in last version
+ regarding full URLs with explicit gemini protocol.
+
* 1.3.1 tagged
* gmid.c (url_after_proto): correct url parsing: accept URLs
diff --git a/gmid.c b/gmid.c
index 7233754..65dd66e 100644
--- a/gmid.c
+++ b/gmid.c
@@ -171,7 +171,7 @@ char *
url_after_proto(char *url)
{
char *s;
- const char *proto = "gemini";
+ const char *proto = "gemini:";
const char *marker = "//";
/* a relative URL */