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

fix(requestConfig): support URL object in request handling #6665

Open
wants to merge 1 commit into
base: v1.x
Choose a base branch
from

Conversation

stevenks17
Copy link

Description:
This pull request adds support for the use of URL objects in requests. Previously, passing a URL object caused an error (url.indexOf is not a function).

Added a type check for URL objects and automatically converted them to strings using .toString().
This ensures Axios can handle both string URLs and URL objects gracefully, preventing errors.

Related Issue:
#6546

Changes Made:
Updated Axios URL handling to support URL objects.

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

Successfully merging this pull request may close these issues.

1 participant