Get a value from the WSGI environ dictionary as str. key and default should be str objects.
(environ, key, default)
| 198 | |
| 199 | |
| 200 | def get_str_from_wsgi(environ, key, default): |
| 201 | """ |
| 202 | Get a value from the WSGI environ dictionary as str. |
| 203 | |
| 204 | key and default should be str objects. |
| 205 | """ |
| 206 | value = get_bytes_from_wsgi(environ, key, default) |
| 207 | return value.decode(errors="replace") |
no test coverage detected