Lines 235-241
$content_type.
Link Here
|
235 |
|
235 |
|
236 |
If applicable, $cookie can be undef, and it will not be sent. |
236 |
If applicable, $cookie can be undef, and it will not be sent. |
237 |
|
237 |
|
238 |
$content_type is one of the following: 'html', 'js', 'json', 'xml', 'rss', or 'atom'. |
238 |
$content_type is one of the following: 'html', 'js', 'json', 'opensearchdescription', 'xml', 'rss', or 'atom'. |
239 |
|
239 |
|
240 |
$status is an HTTP status message, like '403 Authentication Required'. It defaults to '200 OK'. |
240 |
$status is an HTTP status message, like '403 Authentication Required'. It defaults to '200 OK'. |
241 |
|
241 |
|
Lines 259-265
sub output_with_http_headers {
Link Here
|
259 |
# NOTE: not using application/atom+xml or application/rss+xml because of |
259 |
# NOTE: not using application/atom+xml or application/rss+xml because of |
260 |
# Internet Explorer 6; see bug 2078. |
260 |
# Internet Explorer 6; see bug 2078. |
261 |
'rss' => 'text/xml', |
261 |
'rss' => 'text/xml', |
262 |
'atom' => 'text/xml' |
262 |
'atom' => 'text/xml', |
|
|
263 |
'opensearchdescription' => 'application/opensearchdescription+xml', |
263 |
); |
264 |
); |
264 |
|
265 |
|
265 |
die "Unknown content type '$content_type'" if ( !defined( $content_type_map{$content_type} ) ); |
266 |
die "Unknown content type '$content_type'" if ( !defined( $content_type_map{$content_type} ) ); |