diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-19 21:45:20 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-19 21:55:42 +0200 |
commit | 2277b19905ae3fb736166eb8f0d2d5c02f29bef9 (patch) | |
tree | f38a56c43b43ce30a598778d2dff7f0611829392 /src/bindings | |
parent | 7319240c86caaa6782afc79418a070831a11351e (diff) | |
download | chawan-2277b19905ae3fb736166eb8f0d2d5c02f29bef9.tar.gz |
ftp, file: better dirlist, fix FTP path issue
* Dirlist is now unified across ftp and file loaders. It's basically a copycat of w3m's FTP dirlist, because I like how it looks. * We now hack around the cURL FTP path problem by always prepending a slash to the path. This is probably closer aligned with expectations than the default behavior.
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/curl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bindings/curl.nim b/src/bindings/curl.nim index 825ab656..720b7126 100644 --- a/src/bindings/curl.nim +++ b/src/bindings/curl.nim @@ -267,7 +267,7 @@ type CURLE_UNRECOVERABLE_POLL, # 99 - poll/select returned fatal error CURL_LAST # never use! - curl_ftpmethod* {.size: sizeof(cint).} = enum + curl_ftpmethod* {.size: sizeof(clong).} = enum CURLFTPMETHOD_DEFAULT, # let libcurl pick CURLFTPMETHOD_MULTICWD, # single CWD operation for each path part CURLFTPMETHOD_NOCWD, # no CWD at all |