Skip to content
Snippets Groups Projects
Commit 40f3084c authored by Anatolii Kurotych's avatar Anatolii Kurotych
Browse files

[+] print_dap_http_headers

parent 64e71d4c
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,15 @@ void dap_http_header_remove(dap_http_header_t ** top, dap_http_header_t * hdr )
free(hdr->value);
}
void print_dap_http_headers(dap_http_header_t * top)
{
dap_http_header_t * ret;
log_it(L_DEBUG, "Print HTTP headers");
for(ret=top; ret; ret=ret->next) {
log_it(L_DEBUG, "%s: %s", ret->name, ret->value);
}
}
/**
* @brief dap_http_header_find Looks or the header with specified name
* @param top Top of the list
......
......@@ -46,4 +46,7 @@ extern dap_http_header_t * dap_http_header_find(dap_http_header_t * top, const c
extern void dap_http_header_remove(dap_http_header_t ** top,dap_http_header_t * hdr );
// For debug output
extern void print_dap_http_headers(dap_http_header_t * top);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment