Skip to content
Snippets Groups Projects
Commit 3a0af560 authored by Andrew Latham's avatar Andrew Latham
Browse files

Add HTTP URI Debug logging and update notice

enable reporting of the request URI / URL in debugging
change funny debug note to a serious note.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@308372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 54802a09
Branches
Tags
No related merge requests found
...@@ -645,6 +645,9 @@ static int handle_uri(struct ast_tcptls_session_instance *ser, char *uri, ...@@ -645,6 +645,9 @@ static int handle_uri(struct ast_tcptls_session_instance *ser, char *uri,
struct ast_variable *get_vars = NULL, *v, *prev = NULL; struct ast_variable *get_vars = NULL, *v, *prev = NULL;
struct http_uri_redirect *redirect; struct http_uri_redirect *redirect;
if (option_debug > 4)
ast_verbose("HTTP Request URI is %s \n", uri);
strsep(&params, "?"); strsep(&params, "?");
/* Extract arguments from the request and store them in variables. */ /* Extract arguments from the request and store them in variables. */
if (params) { if (params) {
...@@ -788,7 +791,7 @@ static struct ast_variable *parse_cookies(char *cookies) ...@@ -788,7 +791,7 @@ static struct ast_variable *parse_cookies(char *cookies)
} }
if (option_debug) { if (option_debug) {
ast_debug(1, "mmm ... cookie! Name: '%s' Value: '%s'\n", name, val); ast_debug(1, "HTTP Cookie, Name: '%s' Value: '%s'\n", name, val);
} }
var = ast_variable_new(name, val, __FILE__); var = ast_variable_new(name, val, __FILE__);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment