Clustericious
view release on metacpan or search on metacpan
0.9915 Tue Mar 26 08:17:59 EDT 2013
- plugin hook for autodata to add encodings
0.9914 Tue Mar 26 08:03:44 EDT 2013
Avoid timeouts in test and use $c->ua in simpleauth plugin.
0.9913 Wed Mar 13 11:50:51 EDT 2013
Allow cross origin resource sharing by default.
0.9912 Fri Feb 22 10:39:52 EST 2013
Fixed autodatahandler when charset is in content-type..
0.9911 Fri Feb 15 09:58:40 EST 2013
Fixed tests for mojo 3.85 compatibility
0.9910 Thu Feb 7 15:04:10 EST 2013
Mojolicious 3.84 compatibility
0.9909 Thu Dec 20 11:13:29 PST 2012
Plugauth compatibility
lib/Clustericious/Client.pm view on Meta::CPAN
DEBUG "received code 401, trying again with credentials";
my ($realm) = $auth_header =~ /realm=(.*)$/i;
my $host = $url->host;
$self->login( $self->_has_auth ? () : $self->_get_user_pw($host,$realm) );
return $self->_doit($meta ? $meta : (), @_);
}
if ($res->is_success) {
TRACE "Got response : ".$res->to_string;
my $content_type = $res->headers->content_type || do {
WARN "No content-type from "._sanitize_url($url);
"text/plain";
};
return $method =~ /HEAD|DELETE/ ? 1
: $content_type =~ qr[application/json] ? decode_json($res->body)
: $res->body;
}
# Failed.
my $err = $tx->error;
my ($msg, $code) = ($err->{message}, $err->{code});
( run in 0.820 second using v1.01-cache-2.11-cpan-d7f47b0818f )