Skip to content

Commit

Permalink
adjust payload to new examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsto committed Jan 14, 2025
1 parent bc3a34d commit ccdb45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/MockServer/MockHTTPServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ private final class HTTPHandler: ChannelInboundHandler {
let requestId = UUID().uuidString
switch self.mode {
case .string:
responseBody = "\"\(requestId)\"" // must be a valid JSON string
responseBody = "\"Seb\"" // must be a valid JSON document
case .json:
responseBody = "{ \"body\": \"\(requestId)\" }"
responseBody = "{ \"name\": \"Seb\", \"age\" : 52 }"
}
let deadline = Int64(Date(timeIntervalSinceNow: 60).timeIntervalSince1970 * 1000)
responseHeaders = [
Expand Down

0 comments on commit ccdb45a

Please sign in to comment.