Set custom user agent

This commit is contained in:
Tim Pope
2014-04-02 19:04:00 -04:00
parent 61aeac27af
commit 8dfe33676f
+1
View File
@@ -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')