When I try to use the ChangeFileContentInChangeEdit function to update (or create) file in the remote gerrit server, although no error is reported, the local update content cannot be uploaded to the remote file.
After I used chrome developer tools to manually debug and compare, I found that it was an api request header problem:here. After setting the request header to be the same as in chrome:
os:
3.4.1
desc:
When I try to use the
ChangeFileContentInChangeEdit
function to update (or create) file in the remote gerrit server, although no error is reported, the local update content cannot be uploaded to the remote file. After I used chrome developer tools to manually debug and compare, I found that it was an api request header problem:here. After setting the request header to be the same as in chrome:or delete the
json
setting:then call this function, the file content can be updated remote server normally.