We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6f78af commit 96cad26Copy full SHA for 96cad26
packages/adapter/src/rest.ts
@@ -1283,6 +1283,8 @@ class RESTAdapter extends Adapter.extend(BuildURLMixin) {
1283
1284
if (payloadContentType === 'text/html' && typeof payload === 'string' && payload.length > 250) {
1285
shortenedPayload = '[Omitted Lengthy HTML]';
1286
+ } else if (typeof payload === 'object' && payload !== null) {
1287
+ shortenedPayload = JSON.stringify(payload, null, 2);
1288
} else {
1289
shortenedPayload = payload;
1290
}
0 commit comments