Skip to content

Commit

Permalink
Increased max size for decoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewangeta committed Feb 28, 2019
1 parent 39909df commit 55b5987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Stripe/API/StripeRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public extension StripeRequest {
decoder.dateDecodingStrategy = .secondsSince1970

guard response.status == .ok else {
return try decoder.decode(StripeError.self, from: response, maxSize: 65_536, on: worker).map(to: SM.self){ error in
return try decoder.decode(StripeError.self, from: response, maxSize: 1_000_000, on: worker).map(to: SM.self){ error in
throw error
}
}

return try decoder.decode(SM.self, from: response, maxSize: 65_536, on: worker)
return try decoder.decode(SM.self, from: response, maxSize: 1_000_000, on: worker)
}
}

Expand Down

0 comments on commit 55b5987

Please sign in to comment.