File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,6 @@ String ESPWebServer::pathArg(unsigned int i) {
133
133
}
134
134
135
135
String ESPWebServer::arg (String name) {
136
- if (!_activeRequest) {
137
- HTTPS_LOGE (" arg() called but no _activeRequest" );
138
- return " " ;
139
- }
140
136
ResourceParameters *params = _activeRequest->getParams ();
141
137
std::string value;
142
138
params->getQueryParameter (std::string (name.c_str ()), value);
@@ -163,10 +159,6 @@ int ESPWebServer::args() {
163
159
}
164
160
165
161
bool ESPWebServer::hasArg (String name) {
166
- if (!_activeRequest) {
167
- HTTPS_LOGE (" hasArg() called but no _activeRequest" );
168
- return false ;
169
- }
170
162
ResourceParameters *params = _activeRequest->getParams ();
171
163
bool rv = params->isQueryParameterSet (std::string (name.c_str ()));
172
164
HTTPS_LOGD (" hasArg(%s) returns %d" , name.c_str (), (int )rv);
You can’t perform that action at this time.
0 commit comments