
carl at endpoint
Oct 21, 2009, 2:46 PM
Post #2 of 5
(926 views)
Permalink
|
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 . . . . . . . . . . . . . . . . . . . _______________________________________________ interchange-users mailing list interchange-users [at] icdevgroup http://www.icdevgroup.org/mailman/listinfo/interchange-users
|