0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

Minor readability/comments update to httpcommon.hpp.

This commit is contained in:
James Yonan 2015-04-19 11:22:11 -06:00 committed by Lev Stipakov
parent 8f535eb76e
commit 2af25cca08
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -112,7 +112,7 @@ namespace openvpn {
ssl_down_stack();
return;
}
if ((!outbuf || outbuf->empty()) && out_state == S_OUT)
if (out_state == S_OUT && (!outbuf || outbuf->empty()))
{
outbuf = parent().base_http_content_out();
if (!outbuf || !outbuf->defined())
@ -196,9 +196,11 @@ namespace openvpn {
// Callback methods in parent:
// BufferPtr base_http_content_out();
// void base_http_out_eof();
// void base_http_headers_received();
// void base_http_content_in(BufferAllocated& buf);
// bool base_link_send(BufferAllocated& buf);
// bool base_send_queue_empty();
// void base_http_done_handler();
// void base_error_handler(const int errcode, const std::string& err);