You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In current angular-hal.js code (version 0.1.3) line 219, it only handle HTTP Response Header "Content-Location". It is better to add support to "Location" as well.
"The Location response-header field is used to redirect the recipient to a Location other than the Request-URI for completion of the request or identification of a new resource."
So when the client 'POST' a new resource to the server, the server will return empty response body with "Location" header pointing to the URI of new resource.
In current angular-hal.js code (version 0.1.3) line 219, it only handle HTTP Response Header "Content-Location". It is better to add support to "Location" as well.
There are differences between "Content-Location" and "Location" header, see the blog http://www.subbu.org/blog/2008/10/location-vs-content-location.
So when the client 'POST' a new resource to the server, the server will return empty response body with "Location" header pointing to the URI of new resource.
I suggest to add one line of code at line 220:
Thanks,
Yuan
The text was updated successfully, but these errors were encountered: