[ic] json content-type Unsupported
Carl Bailey
carl at endpoint.com
Wed Oct 21 21:46:42 UTC 2009
On Oct 21, 2009, at 5:34 PM, Mathew Jones wrote:
> Hi,
>
> I am serving some json content from within interchange, and was
> receiving a "415 Unsupported
> Content-Type for POST method" error message when calling the file
> using XMLHttpRequest. I tracked it
> down to Server.pm which was checking valid content type. It seems
> only to be allowing the following:
>
> "multipart/form-data|application/x-www-form-urlencoded|application/
> xml" (line 254, in 5.6.2)
>
> Is there a reason that content type 'application/json' was not
> chosen to be in the list?
>
> Regards,
>
> Mat
Seems like a great thing to abstract from being hard-coded, and
introduce a setting in interchange.cfg perhaps.
Carl
. . . . . . . . . . . . . . . . . . .
Carl Bailey
t: 919-323-8025
carl at endpoint.com
. . . . . . . . . . . . . . . . . . .
More information about the interchange-users
mailing list