mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-14 07:34 am

[dw-free] Webserver error logs

[commit: http://hg.dwscoalition.org/dw-free/rev/2530f9f773f5]

http://bugs.dwscoalition.org/show_bug.cgi?id=548

Fix AtomAPI with Apache2 changes.

Patch by [personal profile] exor674.

Files modified:
  • cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm
--------------------------------------------------------------------------------
diff -r 3f8131e94e28 -r 2530f9f773f5 cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm
--- a/cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm	Tue Apr 14 07:31:36 2009 +0000
+++ b/cgi-bin/Apache/LiveJournal/Interface/AtomAPI.pm	Tue Apr 14 07:34:07 2009 +0000
@@ -72,7 +72,6 @@ HTML
     $type = $mime{$type} || 'text/html';
     $r->status_line("$status $msgs{$status}");
     $r->content_type($type);
-    $r->send_http_header();
     $r->print($out);
     return OK;
 };
@@ -553,7 +552,8 @@ sub handle_feed {
 # authentication, calls the appropriate method handler, and
 # prints the response.
 sub handle {
-    my $r = shift;
+    # FIXME: Move this up to caller(s).
+    my $r = DW::Request->get;
 
     return respond($r, 404, "This server does not support the Atom API.")
         unless LJ::ModuleCheck->have_xmlatom;
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org