Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
sentry_sdk
/
__pycache__
/
File Content:
_werkzeug.cpython-311.pyc
� � h� � �X � d Z ddlmZ ddlmZ erddlmZ ddlmZ ddlmZ d� Z dd �Z d S )a Copyright (c) 2007 by the Pallets team. Some rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. � )� iteritems)� TYPE_CHECKING)�Dict)�Iterator)�Tuplec # �N K � t | � � D ]�\ }}t |� � }|� d� � r9|dvr5|dd� � dd� � � � � |fV � �b|dv r,|� dd� � � � � |fV � ��dS )z+ Returns only proper HTTP headers. �HTTP_)�HTTP_CONTENT_TYPE�HTTP_CONTENT_LENGTH� N�_�-)�CONTENT_TYPE�CONTENT_LENGTH)r �str� startswith�replace�title)�environ�key�values �I/opt/cloudlinux/venv/lib/python3.11/site-packages/sentry_sdk/_werkzeug.py�_get_headersr 4 s� � � � � ��(�(� 7� 7� ��U��#�h�h���>�>�'�"�"� 7�s� 3 � ( � ( � �a�b�b�'�/�/�#�s�+�+�1�1�3�3�U�:�:�:�:�:� �6� 6� 6��+�+�c�3�'�'�-�-�/�/��6�6�6�6��7� 7� Fc �< � |rdd| v r`| d }| d dk r |� d� � r|dd� }n�| d dk r|� d� � r |dd � }n�| � d � � r`| d }| d dk r |� d� � r|dd� }nl| d dk r|� d� � r |dd � }n@| � d� � r)| d }| d | d fd vr|d| d z z }nd}|S )z9 Return the host for the given WSGI environment. �HTTP_X_FORWARDED_HOSTzwsgi.url_scheme�httpz:80N����httpsz:443���� HTTP_HOST�SERVER_NAME�SERVER_PORT))r �443)r �80�:�unknown)�endswith�get)r �use_x_forwarded_for�rvs r �get_hostr, H sf � � � �6�'�A�A� �,� -���$�%��/�/�B�K�K��4F�4F�/��C�R�C��B�B� �&� '�7� 2� 2�r�{�{�6�7J�7J� 2��C�R�C��B�� ���[� !� !� � �[� !���$�%��/�/�B�K�K��4F�4F�/��C�R�C��B�B� �&� '�7� 2� 2�r�{�{�6�7J�7J� 2��C�R�C��B�� ���]� #� #� � �]� #���%�&�� �(>�?� H � � � �#�� �.�.�.�B�� �� �Ir N)F)�__doc__�sentry_sdk._compatr �sentry_sdk._typesr �typingr r r r r, � r r �<module>r2 s� �� � �D )� (� (� (� (� (� +� +� +� +� +� +�� ������������������� 7� 7� 7�(� � � � � r
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-311.opt-1.pyc
1200 bytes
0644
__init__.cpython-311.pyc
1200 bytes
0644
_compat.cpython-311.opt-1.pyc
4480 bytes
0644
_compat.cpython-311.pyc
4498 bytes
0644
_functools.cpython-311.opt-1.pyc
5168 bytes
0644
_functools.cpython-311.pyc
5168 bytes
0644
_lru_cache.cpython-311.opt-1.pyc
5929 bytes
0644
_lru_cache.cpython-311.pyc
5956 bytes
0644
_queue.cpython-311.opt-1.pyc
14769 bytes
0644
_queue.cpython-311.pyc
14769 bytes
0644
_types.cpython-311.opt-1.pyc
2410 bytes
0644
_types.cpython-311.pyc
2410 bytes
0644
_werkzeug.cpython-311.opt-1.pyc
4178 bytes
0644
_werkzeug.cpython-311.pyc
4178 bytes
0644
api.cpython-311.opt-1.pyc
8454 bytes
0644
api.cpython-311.pyc
8454 bytes
0644
attachments.cpython-311.opt-1.pyc
2353 bytes
0644
attachments.cpython-311.pyc
2353 bytes
0644
client.cpython-311.opt-1.pyc
25227 bytes
0644
client.cpython-311.pyc
25227 bytes
0644
consts.cpython-311.opt-1.pyc
6716 bytes
0644
consts.cpython-311.pyc
6716 bytes
0644
debug.cpython-311.opt-1.pyc
2494 bytes
0644
debug.cpython-311.pyc
2494 bytes
0644
envelope.cpython-311.opt-1.pyc
14424 bytes
0644
envelope.cpython-311.pyc
14424 bytes
0644
hub.cpython-311.opt-1.pyc
31735 bytes
0644
hub.cpython-311.pyc
31847 bytes
0644
monitor.cpython-311.opt-1.pyc
4889 bytes
0644
monitor.cpython-311.pyc
4889 bytes
0644
profiler.cpython-311.opt-1.pyc
32805 bytes
0644
profiler.cpython-311.pyc
32942 bytes
0644
scope.cpython-311.opt-1.pyc
26283 bytes
0644
scope.cpython-311.pyc
26283 bytes
0644
scrubber.cpython-311.opt-1.pyc
6406 bytes
0644
scrubber.cpython-311.pyc
6406 bytes
0644
serializer.cpython-311.opt-1.pyc
14747 bytes
0644
serializer.cpython-311.pyc
14747 bytes
0644
session.cpython-311.opt-1.pyc
5203 bytes
0644
session.cpython-311.pyc
5203 bytes
0644
sessions.cpython-311.opt-1.pyc
8463 bytes
0644
sessions.cpython-311.pyc
8463 bytes
0644
tracing.cpython-311.opt-1.pyc
29787 bytes
0644
tracing.cpython-311.pyc
29787 bytes
0644
tracing_utils.cpython-311.opt-1.pyc
15628 bytes
0644
tracing_utils.cpython-311.pyc
15628 bytes
0644
tracing_utils_py2.cpython-311.opt-1.pyc
2062 bytes
0644
tracing_utils_py2.cpython-311.pyc
2062 bytes
0644
tracing_utils_py3.cpython-311.opt-1.pyc
3083 bytes
0644
tracing_utils_py3.cpython-311.pyc
3083 bytes
0644
transport.cpython-311.opt-1.pyc
24728 bytes
0644
transport.cpython-311.pyc
24824 bytes
0644
utils.cpython-311.opt-1.pyc
51492 bytes
0644
utils.cpython-311.pyc
51510 bytes
0644
worker.cpython-311.opt-1.pyc
7746 bytes
0644
worker.cpython-311.pyc
7746 bytes
0644
N4ST4R_ID | Naxtarrr