summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-07-17 09:00:40 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-07-17 09:00:40 +0300
commit3528bb86ab14c275c41adc7cfa29a5f5eb167ff2 (patch)
tree4b93b0f2bb9718408d4b855d1f8b8ed17a3e690f /src/gmrequest.c
parent7e536572b602cba180ad4e85bd9c071479f6fa22 (diff)
Working on a UI for uploading text/data
`UploadWidget` allows entering long-form text or dropping a file for uploading. InputWidget isn't yet well suited for really long documents... Some optimizations will be needed.
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r--src/gmrequest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c
index 1d84ef47..2471f311 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -909,7 +909,8 @@ void submit_GmRequest(iGmRequest *d) {
909 size_Block(&d->titan->data)); 909 size_Block(&d->titan->data));
910 if (!isEmpty_String(&d->titan->token)) { 910 if (!isEmpty_String(&d->titan->token)) {
911 appendCStr_Block(&content, ";token="); 911 appendCStr_Block(&content, ";token=");
912 append_Block(&content, utf8_String(&d->titan->token)); 912 append_Block(&content,
913 utf8_String(collect_String(urlEncode_String(&d->titan->token))));
913 } 914 }
914 appendCStr_Block(&content, "\r\n"); 915 appendCStr_Block(&content, "\r\n");
915 append_Block(&content, &d->titan->data); 916 append_Block(&content, &d->titan->data);