Permalink
Browse files

Merge pull request #1 from karenetheridge/topic/lwpua_derive_message

Derive the message from status code if it was not provided
  • Loading branch information...
2 parents 4a4ed7b + 60777a2 commit a5044f7d7442b684bda76ecf42bc6e9f0dd8b199 @gisle committed Aug 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/LWP/UserAgent.pm
View
@@ -1036,6 +1036,7 @@ sub no_proxy {
sub _new_response {
my($request, $code, $message, $content) = @_;
+ $message ||= HTTP::Status::status_message($code);
my $response = HTTP::Response->new($code, $message);
$response->request($request);
$response->header("Client-Date" => HTTP::Date::time2str(time));

0 comments on commit a5044f7

Please sign in to comment.