commit 889f319
default
·
2023-04-11 19:11:33 +0000 UTC
parent c0a48f1
Commented out debugging messages.
1 files changed,
+8,
-8
+8,
-8
1@@ -169,10 +169,10 @@ int oauth_get_handler(const xs_dict *req, const char *q_path,
2 if (!xs_startswith(q_path, "/oauth/"))
3 return 0;
4
5- {
6+/* {
7 xs *j = xs_json_dumps_pp(req, 4);
8 printf("oauth get:\n%s\n", j);
9- }
10+ }*/
11
12 int status = 404;
13 xs_dict *msg = xs_dict_get(req, "q_vars");
14@@ -221,10 +221,10 @@ int oauth_post_handler(const xs_dict *req, const char *q_path,
15 if (!xs_startswith(q_path, "/oauth/"))
16 return 0;
17
18- {
19+/* {
20 xs *j = xs_json_dumps_pp(req, 4);
21 printf("oauth post:\n%s\n", j);
22- }
23+ }*/
24
25 int status = 404;
26 xs_dict *msg = xs_dict_get(req, "p_vars");
27@@ -949,10 +949,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
28 return 0;
29
30 srv_debug(0, xs_fmt("mastoapi_post_handler %s", q_path));
31- {
32+/* {
33 xs *j = xs_json_dumps_pp(req, 4);
34 printf("mastoapi post:\n%s\n", j);
35- }
36+ }*/
37
38 int status = 404;
39 xs *args = NULL;
40@@ -966,10 +966,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
41 if (args == NULL)
42 return 400;
43
44- {
45+/* {
46 xs *j = xs_json_dumps_pp(args, 4);
47 printf("%s\n", j);
48- }
49+ }*/
50
51 xs *cmd = xs_replace(q_path, "/api/v1", "");
52