Neoteroi / BlackSheep

Fast ASGI web framework for Python
https://www.neoteroi.dev/blacksheep/
MIT License
1.86k stars 78 forks source link

Set content-type header in TestSimulator #502

Open tyzhnenko opened 3 months ago

tyzhnenko commented 3 months ago

Adapt set_headers_for_response_content from scribe module to use it for TestSimulator

Issue #501

tyzhnenko commented 3 months ago

@RobertoPrevato, please take a look at a possible solution for setting a content-type header during tests with a TestClient.

ticapix commented 3 months ago

Hi @tyzhnenko ,

I tested the patch locally and it works as expected, addressing #501

Thanks a lot !

tyzhnenko commented 3 months ago

@ticapix great! nice to hear that