From: Arran Cudbard-Bell Date: Thu, 8 Dec 2022 20:11:52 +0000 (-0600) Subject: Formatting X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=227c1444537c0e4f2cace171a0a732077550d765;p=thirdparty%2Ffreeradius-server.git Formatting --- diff --git a/src/modules/rlm_rest/rest.c b/src/modules/rlm_rest/rest.c index 9b922280cb6..25a0188f2eb 100644 --- a/src/modules/rlm_rest/rest.c +++ b/src/modules/rlm_rest/rest.c @@ -49,19 +49,19 @@ const http_body_type_t http_body_type_supported[REST_HTTP_BODY_NUM_ENTRIES] = { REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_UNSUPPORTED REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_UNAVAILABLE REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_INVALID - REST_HTTP_BODY_NONE, // REST_HTTP_BODY_NONE + REST_HTTP_BODY_NONE, // REST_HTTP_BODY_NONE REST_HTTP_BODY_CUSTOM_XLAT, // REST_HTTP_BODY_CUSTOM_XLAT REST_HTTP_BODY_CUSTOM_LITERAL, // REST_HTTP_BODY_CUSTOM_LITERAL - REST_HTTP_BODY_POST, // REST_HTTP_BODY_POST + REST_HTTP_BODY_POST, // REST_HTTP_BODY_POST #ifdef HAVE_JSON - REST_HTTP_BODY_JSON, // REST_HTTP_BODY_JSON + REST_HTTP_BODY_JSON, // REST_HTTP_BODY_JSON #else REST_HTTP_BODY_UNAVAILABLE, #endif REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_XML - REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_YAML + REST_HTTP_BODY_UNSUPPORTED, // REST_HTTP_BODY_YAML REST_HTTP_BODY_INVALID, // REST_HTTP_BODY_HTML - REST_HTTP_BODY_PLAIN // REST_HTTP_BODY_PLAIN + REST_HTTP_BODY_PLAIN // REST_HTTP_BODY_PLAIN }; /* @@ -108,7 +108,6 @@ const unsigned long http_curl_auth[REST_HTTP_AUTH_NUM_ENTRIES] = { [REST_HTTP_AUTH_ANY_SAFE] = CURLAUTH_ANYSAFE }; - /** Conversion table for method config values. * * HTTP verb strings for http_method_t enum values. Used by libcurl in the @@ -184,14 +183,14 @@ size_t http_auth_table_len = NUM_ELEMENTS(http_auth_table); * @see fr_table_str_by_value */ fr_table_num_sorted_t const http_content_type_table[] = { - { L("application/json"), REST_HTTP_BODY_JSON }, + { L("application/json"), REST_HTTP_BODY_JSON }, { L("application/x-www-form-urlencoded"), REST_HTTP_BODY_POST }, { L("application/x-yaml"), REST_HTTP_BODY_YAML }, - { L("application/yaml"), REST_HTTP_BODY_YAML }, + { L("application/yaml"), REST_HTTP_BODY_YAML }, { L("text/html"), REST_HTTP_BODY_HTML }, { L("text/plain"), REST_HTTP_BODY_PLAIN }, { L("text/x-yaml"), REST_HTTP_BODY_YAML }, - { L("text/xml"), REST_HTTP_BODY_XML }, + { L("text/xml"), REST_HTTP_BODY_XML }, { L("text/yaml"), REST_HTTP_BODY_YAML } }; size_t http_content_type_table_len = NUM_ELEMENTS(http_content_type_table);