srctree

Robin Linden parent 7f460d57 60ce3fef
browser/gui: Display error response bodies in the debug gui

inlinesplit
browser/gui/app.cpp added: 7, removed: 2, total 5
@@ -679,8 +679,13 @@ void App::run_http_response_widget() const {
if (ImGui::CollapsingHeader("Headers")) {
ImGui::TextUnformatted(response_headers_str_.c_str());
}
 
if (ImGui::CollapsingHeader("Body")) {
ImGui::TextUnformatted(page().response.body.c_str());
if (maybe_page_) {
ImGui::TextUnformatted(page().response.body.c_str());
} else {
ImGui::TextUnformatted(maybe_page_.error().response.body.c_str());
}
}
});
}