Permalink
Browse files

LWP/Protocol/ldap.pm: more flexible mime type for LDIF output

  • Loading branch information...
marschap committed Sep 6, 2012
1 parent 1051a6b commit fe0644407e2e5ebad0108532869fb4d6988b8779
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/LWP/Protocol/ldap.pm
View
@@ -13,7 +13,7 @@ use LWP::MediaTypes ();
require LWP::Protocol;
@ISA = qw(LWP::Protocol);
-$VERSION = "1.13";
+$VERSION = "1.14";
use strict;
eval {
@@ -86,7 +86,7 @@ sub request {
my $format = lc($extn{'x-format'} || 'html');
if (my $accept = $request->header('Accept')) {
- $format = 'ldif' if $accept =~ m!\btext/ldif\b!;
+ $format = 'ldif' if $accept =~ m!\btext/(x-)?ldif\b!;
}
push @opts, "base" => $dn if $dn;

0 comments on commit fe06444

Please sign in to comment.