Skip to content

Commit

Permalink
Update Network.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jvde-github authored Nov 21, 2024
1 parent 0692fc1 commit 67bc8d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion IO/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ namespace IO
r = http.Post(msg, gzip, false, "");
}

if (r.status < 200 || r.status > 299 || show_response)
if (r.status < 200 || r.status > 299)
Error() << "HTTP Client [" << url << "]: return code " << r.status << " msg: " << r.message;
else if(show_response)
Info() << "HTTP Client [" << url << "]: return code " << r.status << " msg: " << r.message;
}

void HTTPStreamer::process()
Expand Down

0 comments on commit 67bc8d5

Please sign in to comment.