Skip to content

[fix] .. in path gets collapsed after 9.0.2 #1816

Open
@vpzomtrrfrt

Description

@vpzomtrrfrt

Describe the bug

Node.js version: 20.15.1

OS version: Gentoo Linux rolling

Description: superagent started attempting to canonicalize URL paths in 9.0.2

Actual behavior

.. in paths gets interpreted by superagent, e.g. /api/v2/../error gets sent as /api/error.

Expected behavior

Paths should be sent as-is, or at least this should have waited for a major release

Code to reproduce

require("superagent").get("http://localhost:3000/api/v2/../error").then(console.log, console.error)

Checklist

  • I have searched through GitHub issues for similar issues.
  • I have completely read through the README and documentation.
  • I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions