Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
s4cha authored Nov 16, 2023
1 parent e8ac712 commit e93e4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ into:
let network = NetworkingClient(baseURL: "https://jsonplaceholder.typicode.com")

func post() async throws -> User {
try await network.post("/users", params: ["firstname" : "Alan", "lastname" : "Turing"])
try await network.post("/users", body: .urlEncoded(["firstname" : "Alan", "lastname" : "Turing"]))
}
```

Expand Down

0 comments on commit e93e4ae

Please sign in to comment.