Skip to content

Commit

Permalink
CGV-2733: Changed content data encoding to UTF-8
Browse files Browse the repository at this point in the history
- ASCII was not working with some body JSON. With UTF8 all request works.
  • Loading branch information
kp-alessandro-pace committed May 20, 2024
1 parent 7607565 commit 2084066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NWHttpConnection/Domain/NWHttpConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ internal extension NWHttpConnection {
}

connection.send(
content: content.data(using: .ascii),
content: content.data(using: .utf8),
contentContext: .defaultMessage,
isComplete: true,
completion: NWConnection.SendCompletion.contentProcessed(
Expand Down

0 comments on commit 2084066

Please sign in to comment.