We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 229a2bb commit c8dc729Copy full SHA for c8dc729
Sources/App/Middleware/AppStoreAuthenticator.swift
@@ -64,6 +64,7 @@ struct AppStoreAuthenticator: HBAsyncAuthenticator {
64
// (in the iOS and macOS client app: Bundle.main.appStoreReceiptURL)
65
// However, the receipt is not available when testing in Xcode Sandbox,
66
// so the server accepts a transaction Id in sandbox mode as well
67
+ let request = try await request.collateBody().get()
68
guard let buffer = request.body.buffer, let body = buffer.getString(at: buffer.readerIndex, length: buffer.readableBytes) else {
69
request.logger.error("/appstore invoked without app store receipt or transaction id in body")
70
throw HBHTTPError(.badRequest)
0 commit comments