File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,29 @@ var apiRequests = {
88 . set ( 'Accept' , 'application/json' ) ;
99 } ,
1010
11+ post : function ( url , params ) {
12+ return request
13+ . post ( url )
14+ . send ( params )
15+ . set ( 'Accept' , 'application/json' )
16+ . set ( 'User-Agent' , 'Gitify' ) ;
17+ } ,
18+
1119 getAuth : function ( url ) {
1220 return request
1321 . get ( url )
1422 . set ( 'Accept' , 'application/vnd.github.v3+json' )
15- . set ( 'Authorization' , 'token ' + AuthStore . authStatus ( ) ) ;
23+ . set ( 'Authorization' , 'token ' + AuthStore . authStatus ( ) )
24+ . set ( 'User-Agent' , 'Gitify' ) ;
1625 } ,
1726
1827 patchAuth : function ( url , params ) {
1928 return request
2029 . patch ( url )
2130 . send ( params )
2231 . set ( 'Accept' , 'application/vnd.github.v3+json' )
23- . set ( 'Authorization' , 'token ' + AuthStore . authStatus ( ) ) ;
32+ . set ( 'Authorization' , 'token ' + AuthStore . authStatus ( ) )
33+ . set ( 'User-Agent' , 'Gitify' ) ;
2434 }
2535} ;
2636
You can’t perform that action at this time.
0 commit comments