swift-server / swift-server/async-http-client
Different results for the same request on mac OS and Linux
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 1.1k
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
As the question I directly use the code in the example (async/await way) to make a network request, and get the data normally on liunx, but when running on macOS the response body is empty, status: 400 Bad Request, may I ask how to solve this problem?
Contributor guide
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 with the async/await example used in the report and reproduce the same network request on Linux and macOS. Compare the request and response details, including the empty body and 400 status on macOS; done means the request behaves consistently across both platforms or the platform-specific cause is documented with a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100