Skip to content

Slash is appended to URL path during form POST #11

Description

@livmackintosh

When using Sendable () and HTTP POST request with query parameters, an extra slash is added to the URL path which often returns a 404 when the server does not expect the path to have a trailing slash.

pathParamsSep xs = if T.isInfixOf "." (last xs) then "?" else "/?"

If I replace "/?" with "?" there is no problem. What's the purpose of it? If it's to cover the case where the baseURL has no trailing slash, it feels a bit of a hack and "/?" and "?" are the wrong way around :)

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions