@@ -20,6 +20,7 @@ import {
2020 map ,
2121 mapKeys ,
2222 mapValues ,
23+ omit ,
2324 result ,
2425 sortBy ,
2526 uniq ,
@@ -461,6 +462,7 @@ var Store = (
461462 . fetchStore ( {
462463 url : result ( this , 'url' ) ,
463464 data : data ,
465+ requestOptions : omit ( options , 'data' ) ,
464466 } )
465467 . then (
466468 action ( function ( res ) {
@@ -1814,7 +1816,11 @@ var Model = (
18141816 options . data
18151817 ) ;
18161818 return this . __getApi ( )
1817- . fetchModel ( { url : this . url , data : data } )
1819+ . fetchModel ( {
1820+ url : this . url ,
1821+ data : data ,
1822+ requestOptions : omit ( options , 'data' ) ,
1823+ } )
18181824 . then (
18191825 action ( function ( res ) {
18201826 _this14 . fromBackend ( res ) ;
@@ -2154,9 +2160,10 @@ var BinderApi = (function() {
21542160 key : 'fetchModel' ,
21552161 value : function fetchModel ( _ref ) {
21562162 var url = _ref . url ,
2157- data = _ref . data ;
2163+ data = _ref . data ,
2164+ requestOptions = _ref . requestOptions ;
21582165
2159- return this . get ( url , data ) . then ( function ( res ) {
2166+ return this . get ( url , data , requestOptions ) . then ( function ( res ) {
21602167 return {
21612168 data : res . data ,
21622169 repos : res . with ,
@@ -2260,9 +2267,10 @@ var BinderApi = (function() {
22602267 key : 'fetchStore' ,
22612268 value : function fetchStore ( _ref5 ) {
22622269 var url = _ref5 . url ,
2263- data = _ref5 . data ;
2270+ data = _ref5 . data ,
2271+ requestOptions = _ref5 . requestOptions ;
22642272
2265- return this . get ( url , data ) . then ( function ( res ) {
2273+ return this . get ( url , data , requestOptions ) . then ( function ( res ) {
22662274 return {
22672275 data : res . data ,
22682276 repos : res . with ,
0 commit comments