Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit fe0644407e2e5ebad0108532869fb4d6988b8779 1 parent 1051a6b
@marschap marschap authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/LWP/Protocol/ldap.pm
View
4 lib/LWP/Protocol/ldap.pm
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.