Skip to content

Commit 0ca0c43

Browse files
authored
Merge pull request #689 from evoskuil/master
Fix regression in channel_http::send() (sending moved response).
2 parents 7df5094 + 0d9f5f8 commit 0ca0c43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/channels/channel_http.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ void channel_http::send(response&& response, result_handler&& handler) NOEXCEPT
160160
return;
161161
}
162162

163-
write(response, std::move(complete));
163+
// response has been moved to ptr.
164+
write(*ptr, std::move(complete));
164165
}
165166

166167
void channel_http::handle_send(const code& ec, size_t bytes,

0 commit comments

Comments
 (0)