Skip to content

Bug: Query parameters in URL string are encoded incorrectly #411

@nathacks

Description

@nathacks

When passing query parameters directly in the URL string, Drino encodes the ? and = characters, causing the request to fail:

drino.get('http://example.com/?name=test').consume();
// URL becomes: http://example.com/%3Fname=test
// searchParams: URLSearchParams {}
// => 404 Not Found

Workaround: pass query parameters via the queryParams option:

drino.get('http://example.com/', {
  queryParams: { name: 'test' }
}).consume(); // Works

Expected:
Drino should handle query parameters in the URL string without encoding the ?.

Version: drino 2.0.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions