Skip to content

Commit c79337d

Browse files
authored
Fix ChangeFileContentInChangeEdit
1 parent 10c86ef commit c79337d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gerrit.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ func (c *Client) NewRawPutRequest(ctx context.Context, urlStr string, body strin
281281
// See https://gerrit-review.googlesource.com/Documentation/rest-api.html#output
282282
// req.Header.Add("Accept", "application/json")
283283
// req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
284+
req.Header.Add("Accept", "*/*")
285+
req.Header.Add("Content-Type", "text/plain")
284286

285287
// TODO: Add gzip encoding
286288
// Accept-Encoding request header is set to gzip

0 commit comments

Comments
 (0)