fshttp: Add cookie support with cmdline switch --use-cookies
Cookies are handled by cookiejar in memory with fshttp module through the entire session. One useful scenario is, with HTTP storage system where index server adds authentication cookie while redirecting to CDN for actual files. Also, it can be helpful to reuse fshttp in other storage systems requiring cookie.
This commit is contained in:
parent
d7a1fd2a6b
commit
f471a7e3f5
3 changed files with 13 additions and 4 deletions
|
@ -85,6 +85,7 @@ type ConfigInfo struct {
|
|||
MaxBacklog int
|
||||
StatsOneLine bool
|
||||
Progress bool
|
||||
Cookie bool
|
||||
}
|
||||
|
||||
// NewConfig creates a new config with everything set to the default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue