Closed nabetti1720 closed 2 months ago
Thanks for the well documented report. PR is welcome, want to take shot at it?
This could be implemented as looping over the response until no redirect header is present if redirect
option is set to follow
on the Request
or fetch options.
https://github.com/awslabs/llrt/blob/d05da26103acc1fdf45afe15965ef05013e5f488/src/http/fetch.rs#L81
Hi @richarddavison , I would love to work on this assignment if the opportunity arises :)
In other implementations (
node
,bun
, etc.), when fetching the specified URI, a redirect is processed and the final response (status code 200) is returned, but inllrt
, the redirect is not processed and status code 301 is returned.Reproduction procedure:
Execution results in
llrt
:Execution results in
bun
: