HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/primordial/wsgi/__pycache__/falcontools.cpython-39.pyc
a

�,�hn�@sDddlZddlmZddlZddlZe�e�Zejdd�dd�Z	dS)�N)�JSONDecodeError)�req�returnc
Gsd|j���d�}z|r t�|�ni|_Wn6ty^}ztjdt	|�d��WYd}~n
d}~00dS)z�Decode JSON request body and attach to request as `body`.

    :param req: The request to be processed
    :raises falcon.HTTPBadRequest: In the case of invalid JSON
    zutf-8ZBAD_JSON)�code�descriptionN)
Zbounded_stream�read�decode�json�loads�bodyr�falconZHTTPBadRequest�str)r�_r�ex�r�L/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/primordial/wsgi/falcontools.py�	json_body
s�r)
r	Zjson.decoderr�loggingr�	getLogger�__name__�LOG�Requestrrrrr�<module>s