Skip to content

Conversation

@wuyunfeng
Copy link
Member

No description provided.

}

if(_header_list != nullptr) {
curl_slist_free_all(_header_list);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_header_list = nullptr


void set_post_body(const std::string& post_body) {
curl_easy_setopt(_curl, CURLOPT_POSTFIELDS, post_body.c_str());
curl_easy_setopt(_curl, CURLOPT_POSTFIELDSIZE, (long)post_body.length());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

post_body.data(), post_body.size()


void set_content_type(const std::string content_type) {
std::string scratch_str = "Content-Type: " + content_type;
_header_list = curl_slist_append(NULL, scratch_str.c_str());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (_header_list != nullptr) {
curl_slist_free_all(_header_list);
}

std::string request_body = "simple post body query";
st = client.execute_post_request(request_body, &response);
ASSERT_TRUE(st.ok());
ASSERT_EQ(response.length(), request_body.length());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASSERT_STRCMP(.c_str(), .c_str())

imay
imay previously approved these changes Mar 19, 2019
@imay imay merged commit fb4e77d into apache:master Mar 19, 2019
platoneko pushed a commit to platoneko/doris that referenced this pull request Oct 27, 2022
apache#773)

* Implement drop instance
* Fix drop cluster without comparing instance id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants