Skip to content

JSONP output should have content type of application/javascript #146

Closed
clayhinson opened this Issue May 8, 2012 · 2 comments

3 participants

@clayhinson
The Frapi Project member

In the JSON output formatter JSON.php, JSONP output is sent using the content type 'application/json'. This should be sent as 'application/javascript' since the response is interpreted as pure JS instead of JSON.

@scoates
scoates commented May 8, 2012

+1

@dshafik
The Frapi Project member
dshafik commented May 15, 2012

This should be fixed by #145 and #147

  • #145: will now respond with the requested mimetype (e.g. Accept: application/javascript will respond with application/javascript)
  • #147: if you request .js extension, it now defaults to application/javascript (used to be text/javascript)
@dshafik dshafik closed this May 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.