+1 from me
What device does generate such request?
> -----Original Message-----
> From: Vjacheslav Chekushin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 09, 2003 9:22 AM
> To: devel
> Subject: Method not supported problem
>
>
> If get PDU contain HTTP method which not supported, then
> Kannel panics and
> restarts.
>
> Here is problem description:
>
> wap-appl.c:
> error(0, "WSP: Method %s not supported.",
> octstr_get_cstr(method));
> content_body = octstr_create("");
> !!!! resp_headers = NULL;
> ret = HTTP_NOT_IMPLEMENTED;
> 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);
>
> in return_reply() we call
> http_header_get_content_type(headers, &content.type, &content.charset)
>
> And assertion gw_assert(headers != NULL) force gateway to PANIC.
>
> How it looks in wapbox.log:
> 2003-01-08 18:20:39 [2] DEBUG: Connectionless Get request received.
> 2003-01-08 18:20:39 [7] ERROR: WSP: Method TRACE not supported.
> 2003-01-08 18:20:39 [7] PANIC: gwlib/http.c:2620:
> http_header_get_content_type:
> Assertion `headers != NULL' failed.
>
> I think we must change
> resp_headers = NULL;
> to
> resp_headers = http_create_empty_headers();
>
> --
> Vjacheslav Chekushin mailto:[EMAIL PROTECTED]
> Latvian Mobile Phone Company http://www.lmt.lv
>
>