HTTP client bugfix