Commit 346d65a4 authored by Jonathan Hunt's avatar Jonathan Hunt

Fix typo.

parent 22a9581f
......@@ -348,7 +348,8 @@ function climbnz_api_node_view($node, $view_mode, $langcode) {
if (($node->type == 'place' || $node->type =='route') && $view_mode == 'full') {
if (strpos($_SERVER['HTTP_ACCEPT'], 'application/json') !== FALSE ||
strpos($_SERVER['HTTP_ACCEPT'], 'text/html') !== FALSE) {
drupal_add_http_header('Vary', 'Accept', TRUE);
drupal_add_http_header('Vary', 'Accept', TRUE);
}
}
if (strpos($_SERVER['HTTP_ACCEPT'], 'application/json') !== FALSE) {
......
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