summaryrefslogtreecommitdiff
path: root/src/gmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmutil.c')
-rw-r--r--src/gmutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index cf96cfd8..a299347f 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -213,7 +213,9 @@ const iString *absoluteUrl_String(const iString *d, const iString *urlMaybeRelat
213 iString *decHost = punyDecodeHost_(selHost->host); 213 iString *decHost = punyDecodeHost_(selHost->host);
214 append_String(absolute, decHost); 214 append_String(absolute, decHost);
215 delete_String(decHost); 215 delete_String(decHost);
216 if (!isEmpty_Range(&selHost->port)) { 216 /* Default Gemini port is removed as redundant; normalization. */
217 if (!isEmpty_Range(&selHost->port) && (!equalCase_Rangecc(scheme, "gemini")
218 || !equal_Rangecc(selHost->port, "1965"))) {
217 appendCStr_String(absolute, ":"); 219 appendCStr_String(absolute, ":");
218 appendRange_String(absolute, selHost->port); 220 appendRange_String(absolute, selHost->port);
219 } 221 }