Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
derive the message argument from status code if it was not provided
  • Loading branch information
karenetheridge committed Aug 14, 2012
1 parent 4a4ed7b commit 60777a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/LWP/UserAgent.pm
Expand Up @@ -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));
Expand Down

0 comments on commit 60777a2

Please sign in to comment.