/[Frey]/trunk/lib/Frey/Server.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Server.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 507 by dpavlin, Tue Nov 25 00:26:15 2008 UTC revision 519 by dpavlin, Tue Nov 25 17:15:18 2008 UTC
# Line 70  sub main { Line 70  sub main {
70                          qq|                          qq|
71                                  <html>                                  <html>
72                                  <head>                                  <head>
73                                          <META HTTP-EQUIV="Refresh" CONTENT="1; URL=$url"></META>                                          <META HTTP-EQUIV="Refresh" CONTENT="2; URL=$url"></META>
74                                  </head>                                  </head>
75                                  <body>                                  <body>
76                                          Refresh <a href="$url"><tt>$url</tt></a>                                          Refresh <a href="$url"><tt>$url</tt></a>
# Line 112  sub main { Line 112  sub main {
112                  # shared run params                  # shared run params
113                  my $run = {                  my $run = {
114                          request_url => $req->request->url,                          request_url => $req->request->url,
115                            debug => 1,
116                  };                  };
117    
118                  if (                  if (
# Line 147  sub main { Line 148  sub main {
148                  }                  }
149    
150                  if ( $f ) {                  if ( $f ) {
151                          $f->add_status( { req => $req } );                          $f->clean_status;
152                          $req->print( $f->html );                          $f->add_status( { request => $req } );
153                            warn "## status ", dump( map { keys %$_ } $f->status );
154                            my $html = $f->html;
155                            die "no html output" unless $html;
156                            warn "## html ",length($html)," bytes";
157                            $req->print( "$html\n" );
158                  } else {                  } else {
159                          warn "# can't call request on nothing!";                          warn "# can't call request on nothing!";
160                  }                  }

Legend:
Removed from v.507  
changed lines
  Added in v.519

  ViewVC Help
Powered by ViewVC 1.1.26