Only set text_data or bytes_data but not both (#349)
Only set text_data or bytes_data but not both (#349)

* Fixes bug #242, Exception in ASGI application - 'NoneType' object is not subscriptable, server is not defined in scope

* Only set text or bytes but not both.

* Revert "Fixes bug #242, Exception in ASGI application - 'NoneType' object is not subscriptable, server is not defined in scope"

This reverts commit fdea7ff0463bb0b6bcad60497ffa08264fced4ea.

encode/uvicorn,encode/uvicorn