Skip to content

Commit

Permalink
Fix hash method to consider the httpBodyStreamData
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalters committed Sep 18, 2019
1 parent a4233e2 commit d4551da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MockDuck/Sources/MockRequestResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ final class MockRequestResponse: Codable, CustomDebugStringConvertible {
hashData.append(body)
}

if let bodyData = normalizedRequest.httpBodyStreamData {
hashData.append(bodyData)
}

if !hashData.isEmpty {
return String(CryptoUtils.md5(hashData).prefix(8))
} else {
Expand Down

0 comments on commit d4551da

Please sign in to comment.