From a2008fd25751907608a2ffb742e0b1e5bd3fa39f Mon Sep 17 00:00:00 2001 From: MacPingu Date: Wed, 16 Dec 2020 11:45:49 +0100 Subject: [PATCH] fix for embedded json in wps request (#560) * fix for embedded json in wps request --- pywps/app/WPSRequest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pywps/app/WPSRequest.py b/pywps/app/WPSRequest.py index c284a5f6d..2712e7565 100644 --- a/pywps/app/WPSRequest.py +++ b/pywps/app/WPSRequest.py @@ -586,12 +586,16 @@ def _get_rawvalue_value(data, encoding=None): """Return real value of CDATA section""" try: + LOGGER.debug("encoding={}".format(encoding)) if encoding is None or encoding == "": return data + elif encoding == "utf-8": + return data elif encoding == 'base64': return base64.b64decode(data) return base64.b64decode(data) except Exception: + LOGGER.warning("failed to decode base64") return data