Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
sentry_sdk
/
__pycache__
/
File Content:
_werkzeug.cpython-311.pyc
� �|oi� � �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 �K/opt/cloudlinux/venv/lib64/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
Submit
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-311.pyc
1202 bytes
0644
_compat.cpython-311.pyc
4500 bytes
0644
_functools.cpython-311.pyc
5170 bytes
0644
_lru_cache.cpython-311.pyc
5958 bytes
0644
_queue.cpython-311.pyc
14771 bytes
0644
_types.cpython-311.pyc
2412 bytes
0644
_werkzeug.cpython-311.pyc
4180 bytes
0644
api.cpython-311.pyc
8456 bytes
0644
attachments.cpython-311.pyc
2355 bytes
0644
client.cpython-311.pyc
25229 bytes
0644
consts.cpython-311.pyc
6718 bytes
0644
debug.cpython-311.pyc
2496 bytes
0644
envelope.cpython-311.pyc
14426 bytes
0644
hub.cpython-311.pyc
31849 bytes
0644
monitor.cpython-311.pyc
4891 bytes
0644
profiler.cpython-311.pyc
32944 bytes
0644
scope.cpython-311.pyc
26285 bytes
0644
scrubber.cpython-311.pyc
6408 bytes
0644
serializer.cpython-311.pyc
14749 bytes
0644
session.cpython-311.pyc
5205 bytes
0644
sessions.cpython-311.pyc
8465 bytes
0644
tracing.cpython-311.pyc
29789 bytes
0644
tracing_utils.cpython-311.pyc
15630 bytes
0644
tracing_utils_py2.cpython-311.pyc
2091 bytes
0644
tracing_utils_py3.cpython-311.pyc
3112 bytes
0644
transport.cpython-311.pyc
24826 bytes
0644
utils.cpython-311.pyc
51512 bytes
0644
worker.cpython-311.pyc
7748 bytes
0644
N4ST4R_ID | Naxtarrr