/[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 518 by dpavlin, Tue Nov 25 14:58:59 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 148  sub main { Line 148  sub main {
148                  }                  }
149    
150                  if ( $f ) {                  if ( $f ) {
151                          $f->add_status( { req => $req } );                          $f->clean_status;
152                          warn "## status ", dump( map { keys %$_ } @{ $f->status } );                          $f->add_status( { request => $req } );
153                          $req->print( $f->html );                          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.518  
changed lines
  Added in v.519

  ViewVC Help
Powered by ViewVC 1.1.26