JSON server should recognize '_method' in addition to 'method'

scottgifford - March 1, 2009 - 07:15
Project:JSON server
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

The Prototype framework will send the method name in a POST field called "_method" instead of "method", so it would be convenient if we would look in both.

The attached patch does this.

AttachmentSize
json_server_request.patch556 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.