Commit Graph

113 Commits

Author SHA1 Message Date
Nathaniel Wesley Filardo 12abb7d8ad Add --cacert and --proxy-cacert
Fixes https://github.com/fangfufu/httpdirfs/issues/108
2022-11-01 02:13:27 +00:00
Nathaniel Wesley Filardo ff5f566dd9 Link_download_full: don't FREE(NULL)
It's entirely possible that `ts.data` is `NULL` on an error path, so
handing it to `FREE()`, which bails on a `NULL` argument, is not ideal.
Just pass it to `free()` instead, which is required to no-op if given
`NULL`.
2022-11-01 01:59:03 +00:00
Fufu Fang 67edcc906f Clean up for the master branch 2021-09-04 12:41:33 +01:00
Fufu Fang ebcfb0a79e periodic backup 2021-09-04 03:00:25 +01:00
Fufu Fang 5d539c30b1 started writing the ramcache 2021-09-04 01:28:01 +01:00
Fufu Fang 939e287c87 adjusted includes 2021-09-03 21:39:31 +01:00
Fufu Fang 6819ad09e4 removed unnecessary includes 2021-09-03 21:23:52 +01:00
Fufu Fang 7c6433f0cd more refactoring 2021-09-03 17:00:32 +01:00
Fufu Fang 1efe5932cf more refactoring 2021-09-03 16:58:08 +01:00
Fufu Fang dd8d887f94 more refactoring 2021-09-03 16:29:00 +01:00
Fufu Fang d403fa339b minor refactoring 2021-09-03 15:41:22 +01:00
Fufu Fang cd6bb5bee8 more refactoring 2021-09-03 14:56:11 +01:00
Fufu Fang bc88a681e3 check return for curl_easy_setopt, also new libcurl debug level 2021-09-03 12:57:52 +01:00
Fufu Fang 08eb04fb0e refactoring - now check return code from curl_easy_getinfo 2021-09-03 12:47:48 +01:00
Fufu Fang c64a139b46 refactoring transfer_blocking 2021-09-03 12:40:35 +01:00
Fufu Fang 177b738522 removed ts_ptr from Link 2021-09-02 16:52:39 +01:00
Fufu Fang 2d42313e8f compiles, but not running properly 2021-09-02 15:36:53 +01:00
Fufu Fang 31f8509f42 moved the *sonic related fields into a separate struct 2021-09-01 21:29:13 +01:00
Fufu Fang 464c8e4863 Merged transfer status struct and transfer data struct 2021-09-01 11:56:18 +01:00
Fufu Fang a76366c481 improved error handling in path_download 2021-09-01 11:03:27 +01:00
Fufu Fang 95b86825ed Added minimum transfer size in TransferDataStruct 2021-09-01 03:53:19 +01:00
Fufu Fang 08c1eeba49 added initial debug statements 2021-08-31 21:30:24 +01:00
Fufu Fang 3c7e79089b
changed error handling for empty file 2021-08-31 18:54:58 +01:00
Fufu Fang 5e87ac92b0
Change error handling in cache.c, Updated Changelog.md 2021-08-31 18:49:49 +01:00
Fufu Fang f42264d3c3
Added single file mode
Implemented feature request
https://github.com/fangfufu/httpdirfs/issues/86
2021-08-31 13:52:25 +01:00
Fufu Fang af45bcfa19
replaced strlen with strnlen 2021-08-31 12:31:02 +01:00
Fufu Fang 6713362a5f
improved error handling 2021-08-31 11:59:28 +01:00
Fufu Fang e02042cade
improved logging 2021-08-31 11:50:59 +01:00
Fufu Fang 45d8cb8136
changed indentation style 2021-08-31 11:18:39 +01:00
Fufu Fang f791ceb308
shortened error log format, changed indentation style 2021-08-31 11:15:00 +01:00
Fufu Fang b03954482e
changed linktable offset 2021-08-31 10:37:56 +01:00
Fufu Fang 7b6277cb3d
now check for the invalid CONFIG.mode 2021-08-31 00:23:50 +01:00
Fufu Fang 0f3cc61875
relabelled all log outputs 2021-08-30 11:24:32 +01:00
Fufu Fang 0219d7460a
only network.c needs to be cleaned up 2021-08-30 05:17:15 +01:00
Fufu Fang 2a4c61477a
clean up lprintf statements - we have link.c and network.c left. 2021-08-30 03:43:45 +01:00
Fufu Fang 7813487c50
improved error message, removed unnecessary locks 2021-08-30 02:50:03 +01:00
Fufu Fang 14c4b3b486
updated logging facility 2021-08-29 22:46:24 +01:00
Fufu Fang f37cdefa47
Various changes
- Rather than using a flag to indicate operating mode, now we use
a variable.
- Change log printing level names
- Change the return for Cache_exist
2021-08-29 14:07:22 +01:00
Fufu Fang 05ebf76094
fixed LinkTable_uninitialised_fill() status output 2021-08-29 10:58:11 +01:00
Fufu Fang 6d5267089f
improved debug messages 2021-08-22 02:26:09 +01:00
MecryWork 33bbd21e9f
Fix memory overflow
Co-authored-by: MecryWork
2021-08-12 13:28:37 +01:00
Fufu Fang e76b079fe6
Fix issue #59
Stop duplicated link from showing for Apache server configured
with IconsAreLinks option.
2021-08-08 14:25:28 +01:00
Fufu Fang 861481e6e1
Fixed issue #71
Now allows link which start with percentage encoding
2021-08-05 00:34:07 +01:00
Fufu Fang 55ad0cd9fc
converted sonic_id to a string, to support epoupon LMS 2019-10-28 01:09:55 +00:00
Fufu Fang e9c8689f8d
added -insecure_tls 2019-10-28 00:50:28 +00:00
Fufu Fang c2be88c6e4
Added flag to disable the check on server's support for HTTP range requests 2019-10-27 21:54:26 +00:00
Fufu Fang ff1d34855c
Sonic ID3 mode is now working properly, but Sonic index mode stopped working 2019-10-27 21:21:30 +00:00
Fufu Fang 4b2ac94fe1
fixed linktable traversal 2019-10-27 11:31:25 +00:00
Fufu Fang 83f88dbe38
not sure why it crashes 2019-10-27 11:08:23 +00:00
Fufu Fang ef53cb83f6
Attempting to add ID3 support 2019-10-25 18:52:53 +01:00