Set custom user agent

This commit is contained in:
Tim Pope
2012-10-22 00:44:45 -04:00
parent 61aeac27af
commit 8dfe33676f

View File

@@ -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')