| 1 | # -*- cperl-indent-level: 4; cperl-continued-brace-offset: -4; cperl-continued-statement-offset: 4 -*- | ||
| 2 | |||
| 3 | # Copyright (c) 1998-2005 by Jonathan Swartz. All rights reserved. | ||
| 4 | # This program is free software; you can redistribute it and/or modify it | ||
| 5 | # under the same terms as Perl itself. | ||
| 6 | |||
| 7 | package HTML::Mason::Apache::Request; | ||
| 8 | $HTML::Mason::Apache::Request::VERSION = '1.60'; | ||
| 9 | use strict; | ||
| 10 | use warnings; | ||
| 11 | |||
| 12 | use base 'Apache::Request'; | ||
| 13 | |||
| 14 | |||
| 15 | sub new | ||
| 16 | { | ||
| 17 | my $class = shift; | ||
| 18 | my $r = Apache::Request->instance(shift); | ||
| 19 | |||
| 20 | return bless { r => $r }, $class; | ||
| 21 | } | ||
| 22 | |||
| 23 | sub send_http_header | ||
| 24 | { | ||
| 25 | my $self = shift; | ||
| 26 | |||
| 27 | return if $self->notes('sent_http_header'); | ||
| 28 | |||
| 29 | $self->SUPER::send_http_header(@_); | ||
| 30 | |||
| 31 | $self->notes( 'sent_http_header' => 1 ); | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | 1; |