You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@apache.org on 2002/03/17 12:13:23 UTC
cvs commit: xml-axkit/lib/Apache/AxKit/Provider File.pm
matts 02/03/17 03:13:23
Modified: lib/Apache/AxKit/Provider File.pm
Log:
Removed use of Apache::MimeXML
Revision Changes Path
1.2 +2 -4 xml-axkit/lib/Apache/AxKit/Provider/File.pm
Index: File.pm
===================================================================
RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Provider/File.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- File.pm 13 Jan 2002 20:45:12 -0000 1.1
+++ File.pm 17 Mar 2002 11:13:22 -0000 1.2
@@ -1,4 +1,4 @@
-# $Id: File.pm,v 1.1 2002/01/13 20:45:12 matts Exp $
+# $Id: File.pm,v 1.2 2002/03/17 11:13:22 matts Exp $
package Apache::AxKit::Provider::File;
use strict;
@@ -10,7 +10,6 @@
use Apache::Constants qw(HTTP_OK);
use Apache::AxKit::Exception;
use Apache::AxKit::Provider;
-use Apache::MimeXML;
use AxKit;
use File::Basename;
use Fcntl qw(O_RDONLY LOCK_SH);
@@ -138,8 +137,7 @@
local $^W;
if (($xmlfile =~ /\.xml$/i) ||
($self->{apache}->content_type() =~ /^(text|application)\/xml/) ||
- $self->{apache}->pnotes('xml_string') ||
- Apache::MimeXML::check_for_xml(eval {$self->get_fh} || ${ $self->get_strref } )
+ $self->{apache}->pnotes('xml_string')
) {
# chdir(dirname($xmlfile));
return 1;