8000 Return the same data to success as to $promise.then by willtj · Pull Request #3817 · angular/angular.js · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Return the same data to success as to $promise.then #3817

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Still return response.headers to success callback
  • Loading branch information
willtj committed Aug 30, 2013
commit f1e85ecd332e4154b13c42ec0f3b42e4e1f57a7b
2 changes: 1 addition & 1 deletion src/ngResource/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ angular.module('ngResource', ['ng']).

response = (responseInterceptor)(response);

(success||noop)(response);
(success||noop)(response, response.headers);

return response;
}, function(response) {
Expand Down
0