Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get .WithPath to handle URL-encoded value #448

Open
oloffl opened this issue Aug 29, 2024 · 0 comments
Open

Cannot get .WithPath to handle URL-encoded value #448

oloffl opened this issue Aug 29, 2024 · 0 comments

Comments

@oloffl
Copy link

oloffl commented Aug 29, 2024

I am using httpexpect version 2.16.0 to test one of our endpoints that wants a url-encoded path.

It looks something like this

path := "some:data/thats/[email protected]
urlEncoded := url.QueryEscape(path)

e.GET("/data/{urlEncoded}").
  WithPath("urlEncoded", urlEncoded).
  Expect().
  Status(http.StatusOK)

httpexpect fails with the following output

GET /data/some%!A(MISSING)data%!F(MISSING)thats%!F(MISSING)encoded%!.(MISSING)0 HTTP/1.1

Any ideas on what I am doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant