diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gmutil.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c index ee8f150a..bc42690c 100644 --- a/src/gmutil.c +++ b/src/gmutil.c | |||
@@ -301,6 +301,10 @@ void urlEncodePath_String(iString *d) { | |||
301 | return; | 301 | return; |
302 | } | 302 | } |
303 | if (isEmpty_Range(&url.path)) { | 303 | if (isEmpty_Range(&url.path)) { |
304 | if (equalCase_Rangecc(url.scheme, "gemini") && url.path.start) { | ||
305 | /* Normalize to "/" as per specification (November 2021 update). */ | ||
306 | insertData_Block(&d->chars, url.path.start - constBegin_String(d), "/", 1); | ||
307 | } | ||
304 | return; | 308 | return; |
305 | } | 309 | } |
306 | iString *encoded = new_String(); | 310 | iString *encoded = new_String(); |