]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Formatting
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 8 Dec 2022 20:11:52 +0000 (14:11 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 8 Dec 2022 20:11:52 +0000 (14:11 -0600)
src/modules/rlm_rest/rest.c

index 9b922280cb6de8edfc91f69fdc44c9a58e047cad..25a0188f2ebf326414cd84053c0a4a4e1e57b6b8 100644 (file)
@@ -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);