Skip Menu |

This queue is for tickets about the AnyEvent-JSONRPC CPAN distribution.

Report information
The Basics
Id: 83957
Status: new
Priority: 0/
Queue: AnyEvent-JSONRPC

People
Owner: Nobody in particular
Requestors: blue [...] thisisnotmyrealemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: failures with authorization header because it includes extra newline
I'm trying to use AnyEvent::JSONRPC::HTTP::Client to connect to a bitcoin server, but it is failing because the authorization header includes an extra newline because of the encode_base64 call. The newline needs to be removed before the header is sent.
From: blue [...] thisisnotmyrealemail.com
On Thu Mar 14 16:54:25 2013, blue wrote: Show quoted text
> I'm trying to use AnyEvent::JSONRPC::HTTP::Client to connect to a > bitcoin server, but it is failing because the authorization header > includes an extra newline because of the encode_base64 call. The newline > needs to be removed before the header is sent.
For anybody needing to work around this bug, this is what I'm doing: use Hook::LexWrap; wrap 'AnyEvent::JSONRPC::HTTP::Client::encode_base64', post => sub { $_[1] =~ s/\n//g };