Skip to content
This repository was archived by the owner on Jun 15, 2020. It is now read-only.

TLS/SSL secured server support. #6

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Next Next commit
Added debug log to verify parsed key-value pairs and fixed context to…
… save parsed key-value pairs from request body
  • Loading branch information
tmedicci committed Feb 5, 2018
commit ec07ec137927386cd6be72d5ad79729f1b4efd81
3 changes: 2 additions & 1 deletion http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ const char* http_request_get_arg_value(http_context_t ctx, const char* name)
{
http_header_t* it;
SLIST_FOREACH(it, &ctx->request_args, list_entry) {
ESP_LOGD(TAG, "Key %s: %s", it->name, it->value);
if (strcasecmp(name, it->name) == 0) {
return it->value;
}
Expand Down Expand Up @@ -415,7 +416,7 @@ static void form_data_handler_cb(http_context_t http_ctx, void* ctx)
const char* str;
size_t len;
http_request_get_data(http_ctx, &str, &len);
parse_urlencoded_args(ctx, str, len);
parse_urlencoded_args(http_ctx, str, len);
}
}

Expand Down