backported support for chunked input management in the http/https router