Changeset 915
- Timestamp:
- 03/16/02 21:48:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
cgi-bin/ljviews.pl (modified) (1 diff)
-
htdocs/users (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/ljviews.pl
r911 r915 1295 1295 }); 1296 1296 1297 $opts->{'contenttype'} = 'text/xml ';1297 $opts->{'contenttype'} = 'text/xml; charset=utf-8'; 1298 1298 1299 1299 my $logtext = LJ::get_logtext($dbs, @itemids); -
trunk/htdocs/users
r687 r915 179 179 180 180 my $status = $opts->{'status'} || "200 OK"; 181 my $contenttype = $opts->{'contenttype'} || "text/html"; 181 unless ($opts->{'contenttype'}) { 182 $opts->{'contenttype'} = "text/html"; 183 if ($LJ::UNICODE) { 184 $opts->{'contenttype'} .= "; charset=utf-8"; 185 } 186 } 182 187 183 188 if ($opts->{'badargs'}) … … 211 216 print "\n"; 212 217 } else { 213 print "Content-type: $ contenttype\n";218 print "Content-type: $opts->{'contenttype'}\n"; 214 219 print "Cache-Control: private, proxy-revalidate\n"; 215 220 print "Vary: Accept-Encoding, Cookie\n";
