Skip to content

ftp: add 'prefer_ascii' to the transfer state struct - #6578

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/ftp-mode-state
Closed

ftp: add 'prefer_ascii' to the transfer state struct#6578
bagder wants to merge 2 commits into
masterfrom
bagder/ftp-mode-state

Conversation

@bagder

@bagder bagder commented Feb 8, 2021

Copy link
Copy Markdown
Member

... and make sure the code never updates 'set.prefer_ascii' as it breaks
handle reuse which should use the setting as the user specified it.

Added test 1569 to verify: it first makes an FTP transfer with ';type=A'
and then another without type on the same handle and the second should
then use binary. Previously, curl failed this.

@bagder bagder added the FTP label Feb 8, 2021
... and make sure the code never updates 'set.prefer_ascii' as it breaks
handle reuse which should use the setting as the user specified it.

Added test 1569 to verify: it first makes an FTP transfer with ';type=A'
and then another without type on the same handle and the second should
then use binary. Previously, curl failed this.

Closes #6578
and rename it from 'ftp_list_only' since it is also used for SSH and
POP3. The state is updated internally for 'type=D' FTP URLs.

Added test case 1570 to verify.

Closes #6578
@bagder
bagder force-pushed the bagder/ftp-mode-state branch from 0ca99f2 to 5087948 Compare February 8, 2021 21:48
@bagder bagder closed this in 115c9e2 Feb 9, 2021
bagder added a commit that referenced this pull request Feb 9, 2021
and rename it from 'ftp_list_only' since it is also used for SSH and
POP3. The state is updated internally for 'type=D' FTP URLs.

Added test case 1570 to verify.

Closes #6578
@bagder
bagder deleted the bagder/ftp-mode-state branch February 9, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant