You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to update a file, and the connection looks stalled both from javascript and with CURL.
`curl -v -X PUT “path-to-host-and-file” -H “accept: application/json” -H “Content-Type: application/json” -H “Authorization: token …” -d ‘{“content”:“content in base64 format”,“message”:“Updated file uuid-74f5ca75-7022-4c7c-b5ca-7570225c7c55”,“author”:{“email”:“email”,“name”:“name”}}’ -i
Trying host…
TCP_NODELAY set
Connected to host (host) port 3000 (#0)
PUT /api/v1/repos/path-to-file HTTP/1.1
Host: host:3000
User-Agent: curl/7.58.0
accept: application/json
Content-Type: application/json
Authorization: token …
Content-Length: 6340
Expect: 100-continue
< HTTP/1.1 100 Continue
HTTP/1.1 100 Continue
We are completely uploaded and fine
`
Is there any setting for gitea I should make? Gitea is behind caddy.
Thanks,
Claudius
The text was updated successfully, but these errors were encountered:
Thank you, looks like the branch was missing (I used the sha, but I did not mentioned it above). From API description I thought branch is optional: branch (optional) to base this file from. if not given, the default branch is used
[x]
):Description
I want to update a file, and the connection looks stalled both from javascript and with CURL.
`curl -v -X PUT “path-to-host-and-file” -H “accept: application/json” -H “Content-Type: application/json” -H “Authorization: token …” -d ‘{“content”:“content in base64 format”,“message”:“Updated file uuid-74f5ca75-7022-4c7c-b5ca-7570225c7c55”,“author”:{“email”:“email”,“name”:“name”}}’ -i
< HTTP/1.1 100 Continue
HTTP/1.1 100 Continue
`
Is there any setting for gitea I should make? Gitea is behind caddy.
Thanks,
Claudius
The text was updated successfully, but these errors were encountered: