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: respect headers and method from request input parameter #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

orionmiz
Copy link

@orionmiz orionmiz commented Dec 19, 2023

FetchRequest is expected to be constucted with only single Request object as the first parameter of the constructor.

However, FetchRequest only extracts url from Request without headers and method for now.

This PR includes them as fallback value for options
(the second parameter, RequestInit object) also so that can construct FetchRequest properly.

@orionmiz orionmiz changed the title fix: respect header and method from input parameter fix: respect headers and method from input parameter Dec 19, 2023
@orionmiz orionmiz changed the title fix: respect headers and method from input parameter fix: respect headers and method from request input parameter Dec 19, 2023
@orionmiz
Copy link
Author

@surunzi Could you review it, please?

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.

None yet

2 participants