Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmossas committed Nov 12, 2024
1 parent e99b2e4 commit 875ddf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ArriClient/ArriClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public struct DefaultRequestDelegate: ArriRequestDelegate {
}
public func handleHTTPEventStreamRequest(request: ArriHTTPRequest) async throws -> ArriSSEResponse {
let httpRequest = self.prepareHttpRequest(request: request)
let response = try await HTTPClient.shared.execute(httpRequest, timeout: .seconds(5))
let response = try await HTTPClient.shared.execute(httpRequest, timeout: .minutes(10))
if response.status.code >= 200 && response.status.code < 300 && response.headers["Content-Type"].contains("text/event-stream") {
return .ok(ArriHTTPResponse(
statusCode: UInt32(response.status.code),
Expand Down

0 comments on commit 875ddf7

Please sign in to comment.