Skip to content

Commit

Permalink
fix: add sorted encoding of HTTP body (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime authored Jan 16, 2025
1 parent d4af7f7 commit 34d05b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Postie/Encoder/RequestEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class RequestEncoder {
) throws -> Data {
let encoder = JSONEncoder()
encoder.keyEncodingStrategy = keyEncodingStrategy
encoder.outputFormatting = .sortedKeys
return try encoder.encode(body)
}

Expand Down

0 comments on commit 34d05b5

Please sign in to comment.