From 8dfe33676f989040eb54fb1bc5624195b233a9b4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 22 Oct 2012 00:44:45 -0400 Subject: [PATCH] Set custom user agent --- plugin/rhubarb.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/rhubarb.vim b/plugin/rhubarb.vim index 0e00a7f..c5f3cf6 100644 --- a/plugin/rhubarb.vim +++ b/plugin/rhubarb.vim @@ -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')