
ankolev at gmail
Jun 29, 2009, 1:37 PM
Views: 500
Permalink
|
|
REST and text/html not supported
|
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all i have controller Myapp::Controller::Offers with "use parent 'Catalyst::Controller::REST'" where all RESTed requests works fine, but then i have Myapp::Controller::Offers::Create where i dont want C::C::REST to work, because when i send common form with content type 'application/x-www-form-urlencoded' to /offers/create/done i recieve 415 "Content-Type text/html is not supported". The "done" method is: sub done: Local: ActionClass('RenderView') I dont want this controller to be RESTish or atleast how i can enable text/html content types here? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpJJekACgkQlAw25U6UlpCgsQCfWamzBWlE/tU2eMHbnb9HHv6s KRQAnRMAnF6Sjf2RO6gGH9gaEJpzSTqa =wwA/ -----END PGP SIGNATURE----- _______________________________________________ List: Catalyst[at]lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
|