Skip to content

getRequestURL(path) adds irrelevant queryString from current request #2324

Closed

Description

@cbxp

This line probably should be removed:

url.append(queryString());

If getRequestURL() is used with a different path than current request, then adding query string from current request is very unexpected and results in bugs, e.g. when implementing an OAuth2 client. Or this line could be moved to the empty path if branch, e.g. if user wants to get the current request's full URL.

Activity

  1. added a commit that references this issue on Apr 27, 2021
    71922c8
  2. cbxp commented on Apr 27, 2021

    @cbxp
    Author

    Here is the PR: #2327

  3. added a commit that references this issue on May 4, 2021
    2ea2363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions