Response's URL is empty
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
const result = await needle("get", ${url}, {
method: "GET",
headers: defaultHeaders,
follow_set_cookies: true,
follow_max: 10,
});
console.log(result.url);
- URL actually redirects 3 times.
- After redirect,
result.urlis empty andresult.methodis null
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the sample request in the redirect-handling path, using a URL that redirects three times. Trace how the final response assigns its URL and method; done means result.url contains the final URL and result.method is the expected method instead of null.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100