signalpoint / jDrupal

A JavaScript Library and API for Drupal Applications
http://jdrupal.tylerfrankenstein.com/
GNU General Public License v2.0
76 stars 38 forks source link

postsave() fix #65

Closed adam-clarey closed 7 years ago

adam-clarey commented 7 years ago

If an entity patch/post request fails such as a validation error then no 'Location' header is returned in the response, this then bugs out when trying to split() it.

I've just added an extra clause to only do it if a location header exists.

signalpoint commented 7 years ago

@adam-clarey Great catch, thank you.