xml-axkit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jw...@apache.org
Subject cvs commit: xml-axkit/lib AxKit.pm
Date Thu, 21 Mar 2002 17:04:43 GMT
jwalt       02/03/21 09:04:43

  Modified:    lib      AxKit.pm
  Log:
  do not use custom response handling for $response_code == 200
  
  Revision  Changes    Path
  1.4       +7 -7      xml-axkit/lib/AxKit.pm
  
  Index: AxKit.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/AxKit.pm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AxKit.pm	15 Mar 2002 13:37:52 -0000	1.3
  +++ AxKit.pm	21 Mar 2002 17:04:43 -0000	1.4
  @@ -1,4 +1,4 @@
  -# $Id: AxKit.pm,v 1.3 2002/03/15 13:37:52 matts Exp $
  +# $Id: AxKit.pm,v 1.4 2002/03/21 17:04:43 jwalt Exp $
   
   package AxKit;
   use strict;
  @@ -610,9 +610,9 @@
   
   sub save_dependencies {
       my ($r, $cache) = @_;
  -    
  +
       return if $cache->no_cache();
  -    
  +
       eval {
           my @depends = get_depends();
           my $depend_cache = Apache::AxKit::Cache->new($r, $cache->key(), '.depends');
  @@ -630,7 +630,7 @@
       if (not $r->pnotes('xml_string') and $r->pnotes('dom_tree')) {
           $r->pnotes('xml_string', $r->pnotes('dom_tree')->toString );
       }
  -    
  +
       if ($r->content_type eq 'changeme' && !$r->notes('axkit_passthru_type'))
{
           $AxKit::Cfg->AllowOutputCharset(1);
           $r->content_type('text/html; charset=' . ($AxKit::Cfg->OutputCharset || "UTF-8"));
  @@ -638,14 +638,14 @@
       elsif ($r->notes('axkit_passthru_type')) {
           $r->content_type($AxKit::OrigType);
       }
  -    
  +
       if (my $charset = $AxKit::Cfg->OutputCharset()) {
           my $ct = $r->content_type;
           $ct =~ s/charset=.*?(;|$)/charset=$charset/i;
           $r->content_type($ct);
       }
  -            
  -    if ($result_code != OK) {
  +
  +    if ($result_code != OK && $result_code != 200) {
       	# no caching - probably makes no sense, and will be turned off
   	    # anyways, as currently only XSP pages allow to send custom responses
       	AxKit::Debug(4,"sending custom response: $result_code");
  
  
  

Mime
View raw message