Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added extraction of quoted file name from content disposition header #4035

Merged
merged 8 commits into from
Jan 12, 2018
Merged

Added extraction of quoted file name from content disposition header #4035

merged 8 commits into from
Jan 12, 2018

Conversation

Lukasr29
Copy link
Contributor

Small bug fix, added ability to extract quoted file name from Content-Disposition header.

Description

Extended fix for Issue #1991, added extraction of quoted file name that is present in case when file name contains special characters like " ".

Motivation and Context

When header contains quoted file name, it is presented on UI quoted as well ("some file.ext"), when downloading file from UI on windows the " characters are replaced by "_" character and it does change file name and extension (first and last char in filename) after saving file.

Copy link
Contributor

@shockey shockey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are some interesting regexes 😉

I'd like to see:

  • filename resolver factored out into a function
  • tests added for the filename resolver logic

@shockey shockey added this to the January 12, 2018 milestone Jan 11, 2018
@shockey shockey merged commit 64f9935 into swagger-api:master Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants