Problem/Motivation

The default content-type should be automatically applied based on whether a JSONP callback exists.

Proposed resolution

If the default content-type option is selected for a JSON view, use "application/json" if no JSONP callback exists, and use "application/javascript" if a JSONP callback does exist.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jtwalters created an issue. See original summary.

jtwalters’s picture

Here's a patch to provide automatic JSON/JSONP content-type.

jtwalters’s picture

Status: Needs work » Needs review
kenorb’s picture

Assigned: jtwalters » Unassigned