mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -26,7 +26,7 @@ class MyHttpServerConnection : public wpi::net::HttpServerConnection {
|
||||
void MyHttpServerConnection::ProcessRequest() {
|
||||
wpi::util::print(stderr, "HTTP request: '{}'\n", m_request.GetUrl());
|
||||
wpi::net::UrlParser url{m_request.GetUrl(),
|
||||
m_request.GetMethod() == wpi::net::HTTP_CONNECT};
|
||||
m_request.GetMethod() == wpi::net::HTTP_CONNECT};
|
||||
if (!url.IsValid()) {
|
||||
// failed to parse URL
|
||||
SendError(400);
|
||||
|
||||
Reference in New Issue
Block a user