Skip to content
Snippets Groups Projects
Commit 0113671f authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Updating cps_recv's admin view in response to crc errors being triggered by channel listing.

Converted the channel list interface from get to post and added a warning.
parent da7d75d3
No related branches found
No related tags found
1 merge request!180Discoverable cps recv admin
......@@ -209,8 +209,12 @@ namespace cps_admin
"type=\"submit\" value=\"Clear CRC "
"Counters\"/></form>\n";
os << "<h3>Channel List<h3>\n";
os << "<p>View the <a href=\"/channels/\">channel list as "
"json</a> (may bog down the browser).</p>\n";
os << "<p>Warning, requesting the channel list may bog "
"down your browser and has been seen to introduce "
"CRC errors</p>\n";
os << "<form method=\"POST\" action=\"/channels/\"><input "
"type=\"submit\" value=\"Request List (JSON)\" "
"/></form>\n";
}
else
{
......@@ -276,9 +280,9 @@ namespace cps_admin
response_type
handle_channel_view( )
{
if ( req_.method( ) != http::verb::get )
if ( req_.method( ) != http::verb::post )
{
return bad_req_type( "Only GET supported" );
return bad_req_type( "Only POST supported" );
}
std::ostringstream os;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment