[GH-ISSUE #5723] [bug]: 下载文件未正确按照 http 协议解析处理响应 header 中的 Content-Disposition #2231

Open
opened 2026-03-16 23:39:55 +03:00 by kerem · 0 comments
Owner

Originally created by @xzxiaoshan on GitHub (Dec 24, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5723

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Desktop App

Browser

Chrome

Operating System

Windows

Bug Description

按照 http 协议规范,可以通过响应头中的 Content-Disposition 来设定下载文件的文件名称,如下所示的验证中,目前没有支持这个协议解析。

Content-Disposition: attachment; filename="%E4%BC%81%E4%B8%9A%E8%B4%B4%E6%81%AF%E8%B6%85%E9%99%90%E9%A2%84%E8%AD%A6.xlsx"; filename*=UTF-8''%E4%BC%81%E4%B8%9A%E8%B4%B4%E6%81%AF%E8%B6%85%E9%99%90%E9%A2%84%E8%AD%A6.xlsx

对应的文件名称为:企业贴息超限预警.xlsx

Image Image

Deployment Type

Hoppscotch Cloud

Version

v2025.12.0

Originally created by @xzxiaoshan on GitHub (Dec 24, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5723 ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Desktop App ### Browser Chrome ### Operating System Windows ### Bug Description 按照 http 协议规范,可以通过响应头中的 Content-Disposition 来设定下载文件的文件名称,如下所示的验证中,目前没有支持这个协议解析。 Content-Disposition: attachment; filename="%E4%BC%81%E4%B8%9A%E8%B4%B4%E6%81%AF%E8%B6%85%E9%99%90%E9%A2%84%E8%AD%A6.xlsx"; filename*=UTF-8''%E4%BC%81%E4%B8%9A%E8%B4%B4%E6%81%AF%E8%B6%85%E9%99%90%E9%A2%84%E8%AD%A6.xlsx 对应的文件名称为:企业贴息超限预警.xlsx <img width="2609" height="554" alt="Image" src="https://github.com/user-attachments/assets/e642221f-1cd0-4820-afbe-b8687a37aee1" /> <img width="3054" height="1130" alt="Image" src="https://github.com/user-attachments/assets/2c79e364-c71b-4bb3-9f69-af597b6d18e2" /> ### Deployment Type Hoppscotch Cloud ### Version v2025.12.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2231
No description provided.