Skip to content

Commit

Permalink
Fix the X-PCCH-Errmsg header.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaputo committed Jan 27, 2011
1 parent 6e51447 commit c63f926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/POE/Component/Client/HTTP/Request.pm
Expand Up @@ -537,8 +537,8 @@ sub error {

my $nl = "\n";

my $r = HTTP::Response->new($code, [ 'X-PCCH-Errmsg', $message ]);
my $http_msg = status_message($code);
my $r = HTTP::Response->new($code, $http_msg, [ 'X-PCCH-Errmsg', $message ]);
my $m = (
"<html>$nl"
. "<HEAD><TITLE>Error: $http_msg</TITLE></HEAD>$nl"
Expand All @@ -550,8 +550,8 @@ sub error {
. "</HTML>$nl"
);

$r->content ($m);
$r->request ($self->[REQ_HTTP_REQUEST]);
$r->content($m);
$r->request($self->[REQ_HTTP_REQUEST]);
$self->[REQ_POSTBACK]->($r);
$self->[REQ_STATE] |= RS_POSTED;
}
Expand Down

0 comments on commit c63f926

Please sign in to comment.