Created
February 6, 2015 09:54
-
-
Save s5unty/bab86fa814ad6ae34a69 to your computer and use it in GitHub Desktop.
Add proxy support in calendar.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload/calendar/webapi.vim | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git autoload/calendar/webapi.vim autoload/calendar/webapi.vim | |
index 044570c..f07e134 100644 | |
--- autoload/calendar/webapi.vim | |
+++ autoload/calendar/webapi.vim | |
@@ -153,7 +153,7 @@ function! s:request(json, async, url, ...) | |
endif | |
endif | |
if executable('curl') | |
- let command = printf('curl -s -k -i -N -X %s', method) | |
+ let command = printf('curl -x socks5h://127.0.0.1:9527 -s -k -i -N -X %s', method) | |
let command .= s:make_header_args(headdata, '-H ', quote) | |
if withbody | |
let command .= ' --data-binary @' . quote . file . quote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment