Skip to content

[Feature] Webdav下载重定向使用308状态码而非302状态码 #2246

@AnkioTomas

Description

@AnkioTomas

Please confirm the following

  • I have read and agree to AGPL-3.0 Section 15.
    The program is provided "as is" without any warranties; you bear all risks of using it.

  • I have read and agree to AGPL-3.0 Section 16.
    The copyright holders and distributors are not liable for any damages resulting from the use or inability to use the program.

  • I confirm my description is clear, polite, helps developers quickly locate the issue, and complies with community rules.

  • I have read the OpenList documentation.

  • I confirm there are no duplicate issues or discussions.

  • I believe this issue must be handled by OpenList and not by a third party.

  • I confirm this feature has not been implemented yet.

  • I confirm this feature is reasonable and has general demand, not just my personal need.

  • I have not read these checkboxes and therefore I just ticked them all, Please close this issue.

Feature Description

在 WebDAV 场景下,请求通常涉及会改变服务器状态的方法(如 PROPFIND、PUT、MOVE 等)。在这种情况下,部分客户端对 301 和 302 的处理存在兼容性问题,例如可能会修改原始请求方法或无法正确跟随重定向。

根据 RFC 9110 的说明,301 和 302 并不保证方法保持不变;如果需要确保请求方法不被改变,通常更推荐使用 307 或 308。

因此,可以考虑在相关场景下优先采用 307 / 308,以提升 WebDAV 客户端的兼容性。

Suggested Solution

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidInvalid Content/Cannot Reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions