Skip to content

Commit 8ea33b7

Browse files
committed
Use real curl example
1 parent 3804622 commit 8ea33b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/curl-converter/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ <h1>CURL 转代码工具</h1>
11081108
inputEl.addEventListener('input', scheduleConvert);
11091109

11101110
exampleBtn.addEventListener('click', () => {
1111-
inputEl.value = "curl 'https://api.example.com/v1/orders?status=open' \\\n -H 'Accept: application/json' \\\n -H 'Authorization: Bearer sk-test' \\\n -H 'Content-Type: application/json' \\\n --data-raw '{\"page\":1,\"size\":20}'";
1111+
inputEl.value = "curl 'https://httpbin.org/post?status=open' \\\n -H 'Accept: application/json' \\\n -H 'Content-Type: application/json' \\\n --compressed \\\n --data-raw '{\"page\":1,\"size\":20}'";
11121112
convert();
11131113
});
11141114

0 commit comments

Comments
 (0)