forked from loafle/openapi-generator-original
- Use `File.basename` to sanitize the filename got from response header - Write to the `Tempfile` directly and return it - Set file encoding according to the response body's encoding See #1848
- Use `File.basename` to sanitize the filename got from response header - Write to the `Tempfile` directly and return it - Set file encoding according to the response body's encoding See #1848