Fix Content-Length issue when using static middleware