Commit 814dd540 authored by timeless%mozdev.org's avatar timeless%mozdev.org

Bug 188712 Apple's Browser Safari does not support server-push

patch by melo@isp.novis.pt r=timeless a=justdave
parent 2c10f5e2
...@@ -101,12 +101,13 @@ my $format = GetFormat("list/list", $::FORM{'format'}, $::FORM{'ctype'}); ...@@ -101,12 +101,13 @@ my $format = GetFormat("list/list", $::FORM{'format'}, $::FORM{'ctype'});
# http://www.browsercaps.org used as source of compatible browsers. # http://www.browsercaps.org used as source of compatible browsers.
# #
my $serverpush = my $serverpush =
exists $ENV{'HTTP_USER_AGENT'} $format->{'extension'} eq "html"
&& $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/ && exists $ENV{'HTTP_USER_AGENT'}
&& $ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/ && $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/
&& $format->{'extension'} eq "html" && $ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/
&& !defined($::FORM{'serverpush'}) && $ENV{'HTTP_USER_AGENT'} !~ /WebKit/
|| $::FORM{'serverpush'}; && !defined($::FORM{'serverpush'})
|| $::FORM{'serverpush'};
my $order = $::FORM{'order'} || ""; my $order = $::FORM{'order'} || "";
my $order_from_cookie = 0; # True if $order set using $::COOKIE{'LASTORDER'} my $order_from_cookie = 0; # True if $order set using $::COOKIE{'LASTORDER'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment