New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong Content-Type in HTTP API #7726
Comments
Do you want to have a go at fixing this @nullinger ? |
Hm, I think that you are overestimating my Go knowledge 😟 The Content-Type seems to be set here but I don’t know where the function is called: Line 264 in 339bc1d
|
Maybe @KDreynolds would like to have a go at this? It will end up being a I think anywhere you see rclone/fs/rc/rcserver/rcserver.go Line 204 in 339bc1d
|
Sounds good, I'll take a crack at this. Thanks! |
ok I pushed PR #7730 for this. Good chance I need to do some go fmt or something, LMK. |
The associated forum post URL from
https://forum.rclone.org
https://forum.rclone.org/t/wrong-content-type-in-http-api/45420
What is the problem you are having with rclone?
The HTTP API always returns the Content-Type
text/plain; charset=utf-8
instead ofapplication/json
.What is your rclone version (output from
rclone version
)Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
Windows and Linux (Docker), both 64 bit
Which cloud storage system are you using? (e.g. Google Drive)
Not relevant
The command you were trying to run (e.g.
rclone copy /tmp remote:tmp
)curl -v -X POST http://localhost:5572/core/stats
A log from the command with the
-vv
flag (e.g. output fromrclone -vv copy /tmp remote:tmp
)How to use GitHub
The text was updated successfully, but these errors were encountered: