]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
When %rest() get a failure HTTP status code capture the body in REST-HTTP-Body
authorNick Porter <nick@portercomputing.co.uk>
Wed, 30 Jul 2025 13:03:28 +0000 (14:03 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 30 Jul 2025 13:03:28 +0000 (14:03 +0100)
commitd1a44eb6b2deb2af83cdb3be326dee7be89b8e2c
treec4421e2fd9ecb1a79c6aac7e91edf35a9f18cf97
parentb4a47a0ebe57d79f26c5ccd42dc37e629a59b68d
When %rest() get a failure HTTP status code capture the body in REST-HTTP-Body

Recent correction to rcode handling have resulted in xlats which return
XLAT_ACTION_FAIL having their output disgarded, so the previous
behaviour of %rest() was lost.

This approach gives more consistent behaviour with other xlats, but
still allows access to any errors reported by the server in the reply
body.
src/modules/rlm_rest/rlm_rest.c