summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-10-27 15:46:11 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-10-27 15:46:11 +0000
commit197d572eceacaf268d691f598842f263ea0ce892 (patch)
treec9392cfcd4d78ba06163e47d1b65ddfd454c3850 /lib
parent1973a994d9306d206bde1e73e7779a1ca73943c4 (diff)
downloadxxv-197d572eceacaf268d691f598842f263ea0ce892.tar.gz
xxv-197d572eceacaf268d691f598842f263ea0ce892.tar.bz2
* HTTPD: Single send data (fix from r1172)
Diffstat (limited to 'lib')
-rw-r--r--lib/XXV/OUTPUT/Ajax.pm8
-rw-r--r--lib/XXV/OUTPUT/Html.pm8
2 files changed, 10 insertions, 6 deletions
diff --git a/lib/XXV/OUTPUT/Ajax.pm b/lib/XXV/OUTPUT/Ajax.pm
index 3c5d6e4..7e07794 100644
--- a/lib/XXV/OUTPUT/Ajax.pm
+++ b/lib/XXV/OUTPUT/Ajax.pm
@@ -144,11 +144,13 @@ sub printout {
if(! $nopack and $obj->{Zlib} and $obj->{browser}->{accept_gzip});
}
- $obj->{handle}->print($obj->{output_header});
- $obj->{sendbytes}+= length($obj->{output_header});
if($content) {
- $obj->{handle}->print($content);
+ $obj->{handle}->print($obj->{output_header},$content);
+ $obj->{sendbytes}+= length($obj->{output_header});
$obj->{sendbytes}+= length($content);
+ } else {
+ $obj->{handle}->print($obj->{output_header});
+ $obj->{sendbytes}+= length($obj->{output_header});
}
undef $obj->{output};
diff --git a/lib/XXV/OUTPUT/Html.pm b/lib/XXV/OUTPUT/Html.pm
index 15e58b9..a553911 100644
--- a/lib/XXV/OUTPUT/Html.pm
+++ b/lib/XXV/OUTPUT/Html.pm
@@ -336,11 +336,13 @@ sub printout {
$content = Compress::Zlib::memGzip($content)
if(! $nopack and $obj->{Zlib} and $obj->{browser}->{accept_gzip});
}
- $obj->{handle}->print($obj->{output_header});
- $obj->{sendbytes}+= length($obj->{output_header});
if($content) {
- $obj->{handle}->print($content);
+ $obj->{handle}->print($obj->{output_header},$content);
+ $obj->{sendbytes}+= length($obj->{output_header});
$obj->{sendbytes}+= length($content);
+ } else {
+ $obj->{handle}->print($obj->{output_header});
+ $obj->{sendbytes}+= length($obj->{output_header});
}
$obj->{handle}->close();
}