0001-rename-settings-REQUESTS_ALLOWED_CONTENT_TYPES-to-LO.patch
passerelle/settings.py | ||
---|---|---|
167 | 167 |
REQUESTS_PROXIES = {} |
168 | 168 | |
169 | 169 |
# List of LoggedRequest Response Content-Type to log |
170 |
REQUESTS_ALLOWED_CONTENT_TYPES = (
|
|
170 |
LOGGED_CONTENT_TYPES_MESSAGES = (
|
|
171 | 171 |
r'text/*', r'application/(json|xml)' |
172 | 172 |
) |
173 | 173 |
passerelle/utils/__init__.py | ||
---|---|---|
139 | 139 | |
140 | 140 | |
141 | 141 |
def content_type_match(ctype): |
142 |
content_types = settings.REQUESTS_ALLOWED_CONTENT_TYPES
|
|
142 |
content_types = settings.LOGGED_CONTENT_TYPES_MESSAGES
|
|
143 | 143 |
if not ctype: |
144 | 144 |
return False |
145 | 145 |
for content_type in content_types: |
146 |
- |