test: Fix memory leak if HTTP client header was missing a colon