Skip to content

Commit

Permalink
fix: updating the message that's shown for no body in the JSON target
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Jun 30, 2023
1 parent 0852c94 commit 7bb32ab
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/targets/json/native/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const native: Client = {
}

if (typeof payload === undefined || payload === '') {
return '';
return 'No JSON body';
}

return JSON.stringify(payload, null, opts.indent);
Expand Down
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/cookies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/custom-method.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/headers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/http-insecure.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/nested.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/postdata-malformed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/query-encoded.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/query.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body
1 change: 1 addition & 0 deletions src/targets/json/native/fixtures/short.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No JSON body

0 comments on commit 7bb32ab

Please sign in to comment.