colly icon indicating copy to clipboard operation
colly copied to clipboard

Allow access to unsanitized file name

Open j0hax opened this issue 7 months ago • 1 comments

Hello there! I've come across a situation where I have to save a file with a "double" extension (*.kepub.epub), and the current implementation of (r *Response) FileName() purposefully breaks that by always calling SanitizeFileName().

I propose to provide direct access to an unsanitized file name with the method RawFileName(). This shouldn't affect compatibility and allows for accessing information similar to URL package's RawPath, RawQuery, etc.

j0hax avatar Jan 04 '24 17:01 j0hax

Ehm, perhaps, sanitizing double extension away was a mistake in the first place.

WGH- avatar Mar 14 '24 15:03 WGH-