Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vtopc committed Oct 29, 2024
1 parent 086b08a commit 7ff0ae2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions httphelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func (f *urlEncodedPayload) getPayloadBuffer() (*bytes.Buffer, error) {
for _, keyVal := range f.Values {
data.Add(keyVal.key, keyVal.value)
}

return bytes.NewBufferString(data.Encode()), nil
}

Expand Down Expand Up @@ -229,6 +230,7 @@ func (f *formDataPayload) getContentType() string {
// TODO(DE-1139): handle error:
f.getPayloadBuffer()
}

return f.contentType
}

Expand Down Expand Up @@ -335,6 +337,7 @@ func (r *httpRequest) makeRequest(ctx context.Context, method string, payload pa
}

response.Data = responseBody

return &response, nil
}

Expand Down Expand Up @@ -392,5 +395,6 @@ func (r *httpRequest) curlString(req *http.Request, p payload) string {
}
}
}

return strings.Join(parts, " ")
}

0 comments on commit 7ff0ae2

Please sign in to comment.