Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion esp_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,10 @@ void req_setopt(request_t *req, REQ_OPTS opt, void* data)
int post_len;
char len_str[10] = {0};
req_list_t *tmp;
char *host_w_port = malloc(1024);
char *host_w_port = NULL;
if(!req || !data)
return;
host_w_port = malloc(1024);
switch(opt) {
case REQ_SET_METHOD:
req_list_set_key(req->opt, "method", data);
Expand Down