diff options
| -rw-r--r-- | mastoapi.c | 16 |
1 files changed, 8 insertions, 8 deletions
| @@ -169,10 +169,10 @@ int oauth_get_handler(const xs_dict *req, const char *q_path, | |||
| 169 | if (!xs_startswith(q_path, "/oauth/")) | 169 | if (!xs_startswith(q_path, "/oauth/")) |
| 170 | return 0; | 170 | return 0; |
| 171 | 171 | ||
| 172 | { | 172 | /* { |
| 173 | xs *j = xs_json_dumps_pp(req, 4); | 173 | xs *j = xs_json_dumps_pp(req, 4); |
| 174 | printf("oauth get:\n%s\n", j); | 174 | printf("oauth get:\n%s\n", j); |
| 175 | } | 175 | }*/ |
| 176 | 176 | ||
| 177 | int status = 404; | 177 | int status = 404; |
| 178 | xs_dict *msg = xs_dict_get(req, "q_vars"); | 178 | xs_dict *msg = xs_dict_get(req, "q_vars"); |
| @@ -221,10 +221,10 @@ int oauth_post_handler(const xs_dict *req, const char *q_path, | |||
| 221 | if (!xs_startswith(q_path, "/oauth/")) | 221 | if (!xs_startswith(q_path, "/oauth/")) |
| 222 | return 0; | 222 | return 0; |
| 223 | 223 | ||
| 224 | { | 224 | /* { |
| 225 | xs *j = xs_json_dumps_pp(req, 4); | 225 | xs *j = xs_json_dumps_pp(req, 4); |
| 226 | printf("oauth post:\n%s\n", j); | 226 | printf("oauth post:\n%s\n", j); |
| 227 | } | 227 | }*/ |
| 228 | 228 | ||
| 229 | int status = 404; | 229 | int status = 404; |
| 230 | xs_dict *msg = xs_dict_get(req, "p_vars"); | 230 | xs_dict *msg = xs_dict_get(req, "p_vars"); |
| @@ -949,10 +949,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 949 | return 0; | 949 | return 0; |
| 950 | 950 | ||
| 951 | srv_debug(0, xs_fmt("mastoapi_post_handler %s", q_path)); | 951 | srv_debug(0, xs_fmt("mastoapi_post_handler %s", q_path)); |
| 952 | { | 952 | /* { |
| 953 | xs *j = xs_json_dumps_pp(req, 4); | 953 | xs *j = xs_json_dumps_pp(req, 4); |
| 954 | printf("mastoapi post:\n%s\n", j); | 954 | printf("mastoapi post:\n%s\n", j); |
| 955 | } | 955 | }*/ |
| 956 | 956 | ||
| 957 | int status = 404; | 957 | int status = 404; |
| 958 | xs *args = NULL; | 958 | xs *args = NULL; |
| @@ -966,10 +966,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 966 | if (args == NULL) | 966 | if (args == NULL) |
| 967 | return 400; | 967 | return 400; |
| 968 | 968 | ||
| 969 | { | 969 | /* { |
| 970 | xs *j = xs_json_dumps_pp(args, 4); | 970 | xs *j = xs_json_dumps_pp(args, 4); |
| 971 | printf("%s\n", j); | 971 | printf("%s\n", j); |
| 972 | } | 972 | }*/ |
| 973 | 973 | ||
| 974 | xs *cmd = xs_replace(q_path, "/api/v1", ""); | 974 | xs *cmd = xs_replace(q_path, "/api/v1", ""); |
| 975 | 975 | ||