mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-01 12:43:56 +08:00
update 2026-08-04 18:31:57
This commit is contained in:
1 parent
dedf7ef28d
commit
3021446ff0
5 files changed
+13
-7
No files matched your search
@@ -82,7 +82,7 @@ const methods = {
|
||||
|
||||
const protocol = api_tls_listen ? 'https' : 'http';
|
||||
|
||||
const url = api_listen + path;
|
||||
const url = (api_tls_listen ?? api_listen) + path;
|
||||
|
||||
const process = popen(`curl --proto-default '${protocol}' --insecure --request '${method}' --oauth2-bearer '${api_secret}' --url-query '${query}' --data '${body}' '${url}'`);
|
||||
if (process) {
|
||||
|
||||
Reference in new issue
Block a user