diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-09-29 12:13:38 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2023-09-30 16:16:02 +0200 |
commit | 20a6598147a3cba39edf3a5c63ba059814fa5aab (patch) | |
tree | 00051dec6df1cd97ac8202ecb25cece8865ad7ef /neocities/api.scm | |
parent | 99368091dfa733e0e7823072e79c7d4f03c2b700 (diff) |
requests: Parse the result according to content-type
Diffstat (limited to 'neocities/api.scm')
-rw-r--r-- | neocities/api.scm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/neocities/api.scm b/neocities/api.scm index fe68ce2..5e3d2d0 100644 --- a/neocities/api.scm +++ b/neocities/api.scm @@ -116,8 +116,8 @@ #:hostname (neocities-api-hostname api)))) (let-values (((boundary body) (encode-multipart-body files))) (neocities-request - 'POST - url - #:content-type (string-append "multipart/form-data; boundary=" boundary) - #:body body - #:auth (encode-auth (neocities-api-auth api)))))) + 'POST + url + #:content-type (string-append "multipart/form-data; boundary=" boundary) + #:body body + #:auth (encode-auth (neocities-api-auth api)))))) |