mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Stop some curl whining (#6385)
GET is inferred, so make curl whine less by not printing it
This commit is contained in:
@@ -41,7 +41,9 @@ func (d *OutputStringError) parseRequest() {
|
||||
|
||||
// Build cURL string
|
||||
d.parsedCurlString = "curl "
|
||||
d.parsedCurlString = fmt.Sprintf("%s-X %s ", d.parsedCurlString, d.Request.Method)
|
||||
if d.Request.Method != "GET" {
|
||||
d.parsedCurlString = fmt.Sprintf("%s-X %s ", d.parsedCurlString, d.Request.Method)
|
||||
}
|
||||
for k, v := range d.Request.Header {
|
||||
for _, h := range v {
|
||||
if strings.ToLower(k) == "x-vault-token" {
|
||||
|
||||
Reference in New Issue
Block a user