Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N node-http-proxy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 482
    • Issues 482
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 102
    • Merge requests 102
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • http ... PARTY!
  • node-http-proxy
  • Merge requests
  • !1289

Don't modify the path when the path contains multiple slashes.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/ksullivan/dont_modify_path into master Aug 23, 2018
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: ksullivan

We have a node proxy (say "https://node.com") which points to a wordpress site (say "https://word.com").

If you go to "https://word.com///pricing", wordpress will redirect you to "https://word.com/pricing". Cool.

If you go to "https://node.com///pricing", the proxy only passes "/pricing" through to wordpress (not "///pricing"), so it doesn't redirect to "https://node.com/pricing" and you stay on "https://node.com///pricing". 😢

It would be nice if the proxy didn't interfere with the path.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ksullivan/dont_modify_path