danwrong/restler — Issue #72: text/javascript Content-Type
Author: dobesv
Created: 2012-02-28 06:07:35+00:00
State: open

I was briefly puzzled that when getting data from facebook the "auto" parser didn't work.

Turns out that facebook is sending the content-type as 'text/javascript; charset=UTF-8'

A little bit old-school but the 'auto' type might want to consider this to be one of the JSON content-types.

I guess it depends on whether or not it's more common that people fetch JSON data with this (incorrect) content-type or if they would sometimes use restler to download actual javascript code which they do not want to parse to JSON.