When the JSONP Prefix is set, the header should change from application/json to application/javascript

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

makangus’s picture

Status: Needs work » Needs review
FileSize
1.04 KB

Solution 1: Provide extra CONTENT-TYPE options for application/javascript and text/javascript

yannickoo’s picture

application/javascript should be enough for JSONP, why did you add text/javascript?

makangus’s picture

You are right, text/javascript is obsolete now. New patch.

yannickoo’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
655 bytes

Sorry but these big patches are very confusing. Just recreated it with git diff -w but yeah, RTBC :)

yannickoo’s picture

Status: Reviewed & tested by the community » Fixed

Fixed with 0e0285e.

yannickoo’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)
yannickoo’s picture

Status: Patch (to be ported) » Fixed

Fixed with 0c1cfb1.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.