about summary refs log tree commit diff stats
path: root/src/bindings
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-19 21:45:20 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-19 21:55:42 +0200
commit2277b19905ae3fb736166eb8f0d2d5c02f29bef9 (patch)
treef38a56c43b43ce30a598778d2dff7f0611829392 /src/bindings
parent7319240c86caaa6782afc79418a070831a11351e (diff)
downloadchawan-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.nim2
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