swift-server / swift-server/async-http-client

Different results for the same request on mac OS and Linux

Open
#733 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.