Closed xtrime-ru closed 1 year ago
@xtrime-ru I already sent a pull request, it was accepted, but after some time, for some unknown reason, they decided to roll back.
@trowski rewrote logic and moved casting to setHeaders method. setHeaders supports int and floats in latest 3.x-dev: https://github.com/amphp/http/commit/0dc80698c983980424b6d994110a16e89f95d150
But setHeader still has restrictions.
UPDATE: Issue happens only with declare(strict_types=1); Without strict types php will convert argument.
Additional fixes for https://github.com/amphp/http/issues/22
If this is ok i will make PR to other packages: http-server, http-client and websocket-client.