1
mirror of https://github.com/rclone/rclone synced 2024-12-02 11:53:45 +01:00
rclone/fs/operations
J-P Treen 8b8802a078 copyurl: Add option to honor the HTTP header filename directive.
Implemented --header-filename for use with copyurl.

For specifically setting preferred download filenames for HTTP requests, RFC 6226
specifies a 'filename' directive, available within 'Content-Disposition'
header. We can handle with 'mime.ParseMediaType'.

See below for details:
https://httpwg.org/specs/rfc6266.html#disposition.parameter.filename
https://httpwg.org/specs/rfc6266.html#advice.generating

Co-authored-by: buengese <buengese@protonmail.com>
2022-06-20 12:06:09 +01:00
..
check_test.go 🧪 fstest: fix time tests on Windows and add convenience methods to check local and remote fs with precision 2021-11-09 11:43:36 +00:00
check.go check: implement --no-traverse and --no-unicode-normalization 2022-06-16 22:13:50 +01:00
dedupe_test.go size: warn about inaccurate results when objects with unknown size 2022-04-26 19:37:15 +02:00
dedupe.go dedupe: add quit as a choice in interactive mode 2022-01-14 19:57:48 +01:00
listdirsorted_test.go filter: allow multiple --exclude-if-present flags - fixes #6219 2022-06-08 17:11:52 +02:00
lsjson_test.go 🧪 fstest: fix time tests on Windows and add convenience methods to check local and remote fs with precision 2021-11-09 11:43:36 +00:00
lsjson.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
multithread_test.go 🧪 fstest: fix time tests on Windows and add convenience methods to check local and remote fs with precision 2021-11-09 11:43:36 +00:00
multithread.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
operations_internal_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
operations_test.go copyurl: Add option to honor the HTTP header filename directive. 2022-06-20 12:06:09 +01:00
operations.go copyurl: Add option to honor the HTTP header filename directive. 2022-06-20 12:06:09 +01:00
rc_test.go size: warn about inaccurate results when objects with unknown size 2022-04-26 19:37:15 +02:00
rc.go copyurl: Add option to honor the HTTP header filename directive. 2022-06-20 12:06:09 +01:00
reopen_test.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
reopen.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00