Fix http 400 exception in HttpSender