1
0
mirror of https://github.com/labstack/echo.git synced 2025-12-19 23:52:19 +02:00
Files
echo/test/response.go
Jordon Smith 60b69fbb3b Fix XML double WriteHeader (#677)
* WriteHeader if not committed in test.Response

Call WriteHeader if response isn't committed yet in calls to Write to
behave the same as fasthttp and standard Responses.

* Fix XML double WriteHeader

XMLBlob was writing xml.Header to the reply before writing the header
triggering a WriteHeader(http.StatusOK).
2016-10-25 07:56:41 -07:00

1.8 KiB