When sendfilename="true" is set at module-level of an AS2DirectoryPollingModule in config.xml the filename is sent as header content-disposition: Attachment; filename="xxxx.csv"
The target AS2-Server we like to communicate with is quite picky about the quotes around the filename. So I like to introduce an option to toggle the quoting of this filename.
Proposed behaviour
The configuration has to take place at partnership-level.
- Include the quotes when
<attribute name="quote_send_file_name" value="true"/> or no option is given (<- current behaviour is the default for keeping the compatibility)
- results in
content-disposition: Attachment; filename="xxxx.csv"
- Exclude the quotes when
<attribute name="quote_send_file_name" value="false"/>
- results in
content-disposition: Attachment; filename=xxxx.csv
I will provide a pull request.