chobitsu icon indicating copy to clipboard operation
chobitsu copied to clipboard

fix: respect headers and method from request input parameter

Open orionmiz opened this issue 1 year ago • 1 comments

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 avatar Dec 19 '23 16:12 orionmiz

@surunzi Could you review it, please?

orionmiz avatar Feb 20 '24 02:02 orionmiz