summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r--src/gmrequest.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c
index 1a9e83a9..f7a22e0a 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -361,6 +361,9 @@ static const iBlock *aboutPageSource_(iRangecc path, iRangecc query) {
361 if (equalCase_Rangecc(path, "debug")) { 361 if (equalCase_Rangecc(path, "debug")) {
362 return utf8_String(debugInfo_App()); 362 return utf8_String(debugInfo_App());
363 } 363 }
364 if (equalCase_Rangecc(path, "fonts")) {
365 return utf8_String(infoPage_Fonts());
366 }
364 if (equalCase_Rangecc(path, "feeds")) { 367 if (equalCase_Rangecc(path, "feeds")) {
365 return utf8_String(entryListPage_Feeds()); 368 return utf8_String(entryListPage_Feeds());
366 } 369 }
@@ -710,8 +713,9 @@ void submit_GmRequest(iGmRequest *d) {
710 sort_Array(sortedInfo, (int (*)(const void *, const void *)) cmp_FileInfoPtr_); 713 sort_Array(sortedInfo, (int (*)(const void *, const void *)) cmp_FileInfoPtr_);
711 iForEach(PtrArray, s, sortedInfo) { 714 iForEach(PtrArray, s, sortedInfo) {
712 const iFileInfo *entry = s.ptr; 715 const iFileInfo *entry = s.ptr;
713 appendFormat_String(page, "=> %s %s%s\n", 716 appendFormat_String(page, "=> %s %s%s%s\n",
714 cstrCollect_String(makeFileUrl_String(path_FileInfo(entry))), 717 cstrCollect_String(makeFileUrl_String(path_FileInfo(entry))),
718 isDirectory_FileInfo(entry) ? folder_Icon " " : "",
715 cstr_Rangecc(baseName_Path(path_FileInfo(entry))), 719 cstr_Rangecc(baseName_Path(path_FileInfo(entry))),
716 isDirectory_FileInfo(entry) ? iPathSeparator : ""); 720 isDirectory_FileInfo(entry) ? iPathSeparator : "");
717 iRelease(entry); 721 iRelease(entry);
@@ -808,9 +812,10 @@ void submit_GmRequest(iGmRequest *d) {
808 const iString *subPath = e.value; 812 const iString *subPath = e.value;
809 iRangecc relSub = range_String(subPath); 813 iRangecc relSub = range_String(subPath);
810 relSub.start += size_String(entryPath); 814 relSub.start += size_String(entryPath);
811 appendFormat_String(page, "=> %s/%s %s\n", 815 appendFormat_String(page, "=> %s/%s %s%s\n",
812 cstr_String(&d->url), 816 cstr_String(&d->url),
813 cstr_String(withSpacesEncoded_String(collectNewRange_String(relSub))), 817 cstr_String(withSpacesEncoded_String(collectNewRange_String(relSub))),
818 endsWith_Rangecc(relSub, "/") ? folder_Icon " " : "",
814 cstr_Rangecc(relSub)); 819 cstr_Rangecc(relSub));
815 } 820 }
816 resp->statusCode = success_GmStatusCode; 821 resp->statusCode = success_GmStatusCode;