tomas / tomas/needle

Response's URL is empty

Open
#342 0 comments 1 reaction 0 assignees View on GitHub

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);

  1. URL actually redirects 3 times.
  2. After redirect, result.url is empty and result.method is null

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.