Changes between Initial Version and Version 1 of Ticket #17474, comment 12
- Timestamp:
- Oct 18, 2012, 11:54:59 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17474, comment 12
initial v1 1 I agree that this is only a 1.4 issue - however if modpython is in fact passing in a defined content-type of None, then what we actually need is: {{{self._req.headers_in.get('content-type' ) or ''}}} since the key exists in this case.1 I agree that this is only a 1.4 issue - however if modpython is in fact passing in a defined content-type of None, then what we actually need is: {{{self._req.headers_in.get('content-type', '') or ''}}} since the key exists in this case.