comparison Lib/IMPL/Web/HttpResponse.pm @ 256:32aceba4ee6d

corrected ViewHandlers to handle cookies and headers. Dirty hacks to handle binary data RestController doesn't deal with file extensions anymore.
author sergey
date Wed, 12 Dec 2012 04:29:50 +0400
parents 7c517134c42f
children
comparison
equal deleted inserted replaced
255:827cf96faa1c 256:32aceba4ee6d
44 $headers{'-type'} = $this->type || 'text/html'; 44 $headers{'-type'} = $this->type || 'text/html';
45 45
46 if(my $charset = $this->charset) { 46 if(my $charset = $this->charset) {
47 $q->charset($charset); 47 $q->charset($charset);
48 binmode $out, ":encoding($charset)"; 48 binmode $out, ":encoding($charset)";
49 } else {
50 $q->charset('');
51 binmode $out;
49 } 52 }
50 53
51 print $out $q->header(\%headers); 54 print $out $q->header(\%headers);
52 55
53 if(my $body = $this->body) { 56 if(my $body = $this->body) {