Skip to content
Snippets Groups Projects
Commit 54b01434 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

Merged revisions 134983 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r134983 | kpfleming | 2008-07-31 17:18:11 -0500 (Thu, 31 Jul 2008) | 3 lines

accomodate users who seem to lack a sense of humor :-)


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@135016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 72c34656
Branches
Tags
No related merge requests found
...@@ -228,12 +228,12 @@ static struct ast_str *static_callback(struct ast_tcptls_session_instance *ser, ...@@ -228,12 +228,12 @@ static struct ast_str *static_callback(struct ast_tcptls_session_instance *ser,
out404: out404:
return ast_http_error((*status = 404), return ast_http_error((*status = 404),
(*title = ast_strdup("Not Found")), (*title = ast_strdup("Not Found")),
NULL, "Nothing to see here. Move along."); NULL, "The requested URL was not found on this server.");
out403: out403:
return ast_http_error((*status = 403), return ast_http_error((*status = 403),
(*title = ast_strdup("Access Denied")), (*title = ast_strdup("Access Denied")),
NULL, "Sorry, I cannot let you do that, Dave."); NULL, "You do not have permission to access the requested URL.");
} }
...@@ -480,7 +480,7 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char ...@@ -480,7 +480,7 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char
snprintf(buf, sizeof(buf), "Location: %s\r\n", redirect->dest); snprintf(buf, sizeof(buf), "Location: %s\r\n", redirect->dest);
out = ast_http_error((*status = 302), out = ast_http_error((*status = 302),
(*title = ast_strdup("Moved Temporarily")), (*title = ast_strdup("Moved Temporarily")),
buf, "There is no spoon..."); buf, "Redirecting...");
break; break;
} }
...@@ -544,7 +544,7 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char ...@@ -544,7 +544,7 @@ static struct ast_str *handle_uri(struct ast_tcptls_session_instance *ser, char
if (method == AST_HTTP_POST && !astman_is_authed(manid_from_vars(vars))) { if (method == AST_HTTP_POST && !astman_is_authed(manid_from_vars(vars))) {
out = ast_http_error((*status = 403), out = ast_http_error((*status = 403),
(*title = ast_strdup("Access Denied")), (*title = ast_strdup("Access Denied")),
NULL, "Sorry, I cannot let you do that, Dave."); NULL, "You do not have permission to access the requested URL.");
} else if (urih) { } else if (urih) {
*static_content = urih->static_content; *static_content = urih->static_content;
out = urih->callback(ser, urih, uri, method, vars, headers, status, title, contentlength); out = urih->callback(ser, urih, uri, method, vars, headers, status, title, contentlength);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment