Fix typo in HttpApi.encode_request_data