Skip to content
Snippets Groups Projects
Commit e6f50c3d authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Interface updates to line up with changes to webserver

parent b464d23f
No related branches found
No related tags found
No related merge requests found
...@@ -33,16 +33,13 @@ our (@ISA,@EXPORT,@EXPORT_OK); ...@@ -33,16 +33,13 @@ our (@ISA,@EXPORT,@EXPORT_OK);
sub _catchall sub _catchall
{ {
my ($kernel,$globals,$module,$daction,$request) = @_; my ($kernel,$globals,$client_session_id,$request) = @_;
# If we not passed default by the main app, just return
return if ($daction ne "default");
# Build content # Build content
my $content = ""; my $content = "";
$content .= "Hi there: $daction"; $content .= "Hi there: ".$request->uri->as_string();
return (200,$content); return (200,$content);
......
...@@ -43,7 +43,7 @@ our (@ISA,@EXPORT,@EXPORT_OK); ...@@ -43,7 +43,7 @@ our (@ISA,@EXPORT,@EXPORT_OK);
sub _catchall sub _catchall
{ {
my ($kernel,$globals,$module,$daction,$request) = @_; my ($kernel,$globals,$client_session_id,$request) = @_;
my $logger = $globals->{'logger'}; my $logger = $globals->{'logger'};
...@@ -100,7 +100,7 @@ sub _catchall ...@@ -100,7 +100,7 @@ sub _catchall
if (defined $ims) { if (defined $ims) {
my $time = HTTP::Date::str2time($ims); my $time = HTTP::Date::str2time($ims);
if (defined($time) && $time >= $stat->mtime) { if (defined($time) && $time >= $stat->mtime) {
return HTTP::Response->new(HTTP::Status::RC_NOT_MODIFIED,$request->method." $daction") return HTTP::Response->new(HTTP::Status::RC_NOT_MODIFIED,$request->method." ".$resource)
} }
} }
# Set header for file modified # Set header for file modified
......
...@@ -54,14 +54,11 @@ my $menu = { ...@@ -54,14 +54,11 @@ my $menu = {
# Default page/action # Default page/action
sub default sub default
{ {
my ($kernel,$globals,$module,$daction,$request) = @_; my ($kernel,$globals,$client_session_id,$request) = @_;
# If we not passed default by the main app, just return
return if ($daction ne "default");
my $users = $globals->{'users'}; my $users = $globals->{'users'};
# Build content # Build content
my $content = ""; my $content = "";
...@@ -141,7 +138,7 @@ EOF ...@@ -141,7 +138,7 @@ EOF
# Add action # Add action
sub add sub add
{ {
my ($kernel,$globals,$module,$daction,$request) = @_; my ($kernel,$globals,$client_session_id,$request) = @_;
# Setup our environment # Setup our environment
......
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