mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-08 04:54:46 +08:00
Set custom user agent
This commit is contained in:
@@ -94,6 +94,7 @@ function! s:curl_arguments(path, ...) abort
|
|||||||
let args = ['-q', '--silent']
|
let args = ['-q', '--silent']
|
||||||
call extend(args, ['-H', 'Accept: application/json'])
|
call extend(args, ['-H', 'Accept: application/json'])
|
||||||
call extend(args, ['-H', 'Content-Type: application/json'])
|
call extend(args, ['-H', 'Content-Type: application/json'])
|
||||||
|
call extend(args, ['-A', 'rhubarb.vim'])
|
||||||
if get(options, 'auth', '') =~# ':'
|
if get(options, 'auth', '') =~# ':'
|
||||||
call extend(args, ['-u', options.auth])
|
call extend(args, ['-u', options.auth])
|
||||||
elseif has_key(options, 'auth')
|
elseif has_key(options, 'auth')
|
||||||
|
|||||||
Reference in New Issue
Block a user