We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6acdc7b commit ee4bfd2Copy full SHA for ee4bfd2
app/rest/request.cc
@@ -45,10 +45,13 @@ void Request::set_post_fields(const char* data) {
45
46
std::string Request::ToString() {
47
std::string output = options_.url + '\n';
48
+ size_t cached_offset = read_buffer_offset_;
49
if (!ReadBodyIntoString(&output)) {
50
output += "*** aborted ***\n";
51
}
52
output += "\n";
53
+ // Reset the buffer offset, since the read moves it.
54
+ read_buffer_offset_ = cached_offset;
55
return output;
56
57
0 commit comments