Skip to content

Option to disable ASCII EOL conversion #615

@rndb8418

Description

@rndb8418

Are you open to a PR that allows line ending conversion for transfers using ASCII mode to be disabled via a flag?

I understand that this isn't compliant with the RFC spec, but other FTP servers support this feature to be toggled (e.g. vsftpd) as end-users may not want their files modified by the server. This would also allow the SIZE command to work in ASCII mode if the conversion is disabled.

I would propose the flag is something like DisableASCIIConversion bool so the default (false) still represents the current working. This would allow anyone that wants the conversion to be disabled to set it to true and bypass the ascii conversion logic for line endings.

Happy to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions