[Slim-Checkins] r11739 - /branches/6.5/server/Slim/Networking/Async/HTTP.pm

andy at svn.slimdevices.com andy at svn.slimdevices.com
Tue Apr 10 13:21:03 PDT 2007


Author: andy
Date: Tue Apr 10 13:21:03 2007
New Revision: 11739

URL: http://svn.slimdevices.com?rev=11739&view=rev
Log:
Fix bug where Authorization header was broken by not telling encode_base64 what EOL char to use

Modified:
    branches/6.5/server/Slim/Networking/Async/HTTP.pm

Modified: branches/6.5/server/Slim/Networking/Async/HTTP.pm
URL: http://svn.slimdevices.com/branches/6.5/server/Slim/Networking/Async/HTTP.pm?rev=11739&r1=11738&r2=11739&view=diff
==============================================================================
--- branches/6.5/server/Slim/Networking/Async/HTTP.pm (original)
+++ branches/6.5/server/Slim/Networking/Async/HTTP.pm Tue Apr 10 13:21:03 2007
@@ -155,7 +155,7 @@
 	
 	# handle basic auth if username, password provided
 	if ( my $userinfo = $self->request->uri->userinfo ) {
-		$headers->header( Authorization => 'Basic ' . encode_base64( $userinfo ) );
+		$headers->header( Authorization => 'Basic ' . encode_base64( $userinfo, '' ) );
 	}
 	
 	my $host = $self->request->uri->host;



More information about the checkins mailing list