]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow 'plain' as a valid WEB API type
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 29 Aug 2014 10:58:59 +0000 (12:58 +0200)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 29 Aug 2014 10:58:59 +0000 (12:58 +0200)
src/modules/rlm_rest/rest.c

index 7ec304710edc2555e460ae60a4384680ca8738eb..3cc984b8a307b89d78bf8d74d916dfd27b73d14e 100644 (file)
@@ -60,7 +60,7 @@ const http_body_type_t http_body_type_supported[HTTP_BODY_NUM_ENTRIES] = {
        HTTP_BODY_UNSUPPORTED,          // HTTP_BODY_XML
        HTTP_BODY_UNSUPPORTED,          // HTTP_BODY_YAML
        HTTP_BODY_INVALID,              // HTTP_BODY_HTML
-       HTTP_BODY_INVALID               // HTTP_BODY_PLAIN
+       HTTP_BODY_PLAIN                 // HTTP_BODY_PLAIN
 };
 
 /*
@@ -925,6 +925,8 @@ static int rest_decode_plain(UNUSED rlm_rest_t *instance, UNUSED rlm_rest_sectio
        vp = pairmake_reply("REST-HTTP-Body", NULL, T_OP_ADD);
        pairstrncpy(vp, raw, rawlen);
 
+       RDEBUG2("Adding reply:REST-HTTP-Body += \"%s\"", vp->vp_strvalue);
+
        return 1;
 }