in reply to Re: Checking a header is printed already?
in thread Checking a header is printed already?
#### Method: header # Return a Content-Type: style header # #### 'header' => <<'END_OF_FUNC', sub header { my($self,@p) = self_or_default(@_); my(@header); return "" if $self->{'.header_printed'}++ and $HEADERS_ONCE;
# Change this to 1 to suppress redundant HTTP headers $HEADERS_ONCE = 0;
$HEADERS_ONCE++, next if /^[:-]unique_headers$/;
use CGI qw( -unique_headers );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Checking a header is printed already?
by Bloodnok (Vicar) on Oct 06, 2009 at 11:56 UTC | |
by Anonymous Monk on Oct 06, 2009 at 12:28 UTC | |
by Bloodnok (Vicar) on Oct 06, 2009 at 16:35 UTC | |
by Anonymous Monk on Oct 07, 2009 at 13:25 UTC | |
|
Re^3: Checking a header is printed already?
by ultranerds (Hermit) on Oct 06, 2009 at 12:11 UTC | |
by Anonymous Monk on Oct 06, 2009 at 12:25 UTC | |
by ultranerds (Hermit) on Oct 06, 2009 at 13:23 UTC |