Skip to content

Commit 7942d8f

Browse files
committed
Make curl ignore .curlrc files.
1 parent a7789ab commit 7942d8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

autoload/webapi/http.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function! webapi#http#get(url, ...)
132132
let url .= "?" . getdatastr
133133
endif
134134
if executable('curl')
135-
let command = printf('curl %s -s -k -i', follow ? '-L' : '')
135+
let command = printf('curl -q %s -s -k -i', follow ? '-L' : '')
136136
let quote = &shellxquote == '"' ? "'" : '"'
137137
for key in keys(headdata)
138138
if has('win32')
@@ -209,7 +209,7 @@ function! webapi#http#post(url, ...)
209209
endif
210210
let file = tempname()
211211
if executable('curl')
212-
let command = printf('curl %s -s -k -i -X %s', (follow ? '-L' : ''), len(method) ? method : 'POST')
212+
let command = printf('curl -q %s -s -k -i -X %s', (follow ? '-L' : ''), len(method) ? method : 'POST')
213213
let quote = &shellxquote == '"' ? "'" : '"'
214214
for key in keys(headdata)
215215
if has('win32')

0 commit comments

Comments
 (0)