I guess this would apply also then for the above if clause:
...
if (octstr_str_compare(method, "GET") == 0 &&
octstr_compare(url, magic_url) == 0) {
ret = HTTP_OK;
resp_headers = list_create();
http_header_add(resp_headers, "Content-Type",
"text/vnd.wap.wml");
content_body = octstr_create(HEALTH_DECK);
octstr_destroy(request_body);
return_reply(ret, content_body, resp_headers, client_SDU_size,
event, session_id, url, x_wap_tod,
actual_headers);
wap_event_destroy(event);
http_destroy_headers(actual_headers);
} else if ...
...
Basically
List *http_create_empty_headers(void)
{
gwlib_assert_init();
return list_create();
}
does the same as resp_headers = list_create(); but checking if the
gwlib routines have been initialized.
Has anybody measured the impact concerning performance for this check
on a (very) high load system?!
Stipe
[EMAIL PROTECTED]
-------------------------------------------------------------------
Wapme Systems AG
M�nsterstr. 248
40470 D�sseldorf
Tel: +49-211-74845-0
Fax: +49-211-74845-299
E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are