Skip to content

Commit 82da484

Browse files
committed
only parse payloads when they are application/json
1 parent 8f1619b commit 82da484

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/webapp/app/v3/runEngineHandlers.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -814,9 +814,9 @@ export function setupBatchQueueCallbacks() {
814814
* @param payloadType - The payload type (e.g., "application/json", "application/store")
815815
*/
816816
function normalizePayload(payload: unknown, payloadType?: string): unknown {
817-
// For non-JSON payloads (including application/store for R2-offloaded payloads),
818-
// return as-is - no normalization needed
819-
if (payloadType !== "application/json" && payloadType !== undefined) {
817+
// Only process "application/json" payloads
818+
// For all other types (including undefined), return as-is
819+
if (payloadType !== "application/json") {
820820
return payload;
821821
}
822822

0 commit comments

Comments
 (0)