| 236 | } |
| 237 | |
| 238 | WebParamMap readParams(httpd_req_t *req) { |
| 239 | WebParamMap params; |
| 240 | String body; |
| 241 | if (!receiveBody(req, body)) return params; |
| 242 | String contentType = headerValue(req, "Content-Type"); |
| 243 | if (contentType.indexOf("multipart/form-data") >= 0) parseMultipartFields(body, contentType, params); |
| 244 | else parseUrlEncoded(body, params); |
| 245 | return params; |
| 246 | } |
| 247 | |
| 248 | void sendText(httpd_req_t *req, int status, const char *type, const String &body) { |
| 249 | httpd_resp_set_status( |
no test coverage detected