RESTful-Drupal / restful

RESTful best practices for Drupal
https://drupal.org/project/restful
419 stars 173 forks source link

Invoke hook_exit even when the response is empty #995

Open AronNovak opened 7 years ago

AronNovak commented 7 years ago

Problem

When a handler does not return anything, for instance for a DELETE, the hook_exit is not invoked (usually via restful_formatted_delivery).

e0ipso commented 7 years ago

Thanks for the report. Will you be providing a patch for this?

AronNovak commented 7 years ago

I am not exactly sure at this point, as i could not understand fully if it's a core issue that the delivery callback is not invoked or something inside RESTful.

mrconnerton commented 7 years ago

I'm interested in something similar. I'm actually interested in having the DELETE method for a node data provider return a "success" value or any value. I just don't know where to make that change.