Skip to content

Correct mapRequest() to include query string in $uri #8

Closed
@kentr

Description

@kentr

Problem / motivation

See here for background.

The problem case: POST requests that also have query string values in the URI.

Expected results

  • Request::$request contains the POST data.
  • Request::$query contains the query string data.

Actual results

Since, in the case of POST requests, the $parameters parameter contains only the POST data, the query string values will be missed unless they're included in $uri (IOW, only the POST data will be see by create()).

Suggested fix

Request::create() uses any query string values that are included the $uri parameter when building its $query values.

To fix the problem, add the query string to the $uri when calling create().

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