Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Derive message from status code if it was not provided

  • Loading branch information...
commit 4eeaac6a767822a73c1f07d93d1a91a4c5b9f523 1 parent 65320f2
@karenetheridge karenetheridge authored committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/LWP/UserAgent.pm
View
1  lib/LWP/UserAgent.pm
@@ -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));
Please sign in to comment.
Something went wrong with that request. Please try again.