From: Arran Cudbard-Bell Date: Fri, 29 Aug 2014 10:58:59 +0000 (+0200) Subject: Allow 'plain' as a valid WEB API type X-Git-Tag: release_3_0_5~684 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf4d10a65707cdcecb3bbc141c3912cf73943153;p=thirdparty%2Ffreeradius-server.git Allow 'plain' as a valid WEB API type --- diff --git a/src/modules/rlm_rest/rest.c b/src/modules/rlm_rest/rest.c index 7ec304710ed..3cc984b8a30 100644 --- a/src/modules/rlm_rest/rest.c +++ b/src/modules/rlm_rest/rest.c @@ -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; }