We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9ce64d commit 0b57be1Copy full SHA for 0b57be1
packages/fdr-sdk/src/api-definition/snippets/SnippetHttpRequest.ts
@@ -120,6 +120,11 @@ export function toSnippetHttpRequest(
120
}
121
122
123
+ // If endpoint is OpenRPC, ensure Content-Type is application/json
124
+ if (endpoint.protocol?.type === "openrpc") {
125
+ headers["Content-Type"] = "application/json";
126
+ }
127
+
128
return {
129
method: endpoint.method,
130
url,
0 commit comments