mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +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']
|
||||
call extend(args, ['-H', 'Accept: application/json'])
|
||||
call extend(args, ['-H', 'Content-Type: application/json'])
|
||||
call extend(args, ['-A', 'rhubarb.vim'])
|
||||
if get(options, 'auth', '') =~# ':'
|
||||
call extend(args, ['-u', options.auth])
|
||||
elseif has_key(options, 'auth')
|
||||
|
||||
Reference in New Issue
Block a user