transmission-remote-gui / transgui

🧲 A feature rich cross platform Transmission BitTorrent client. Faster and has more functionality than the built-in web GUI.
GNU General Public License v2.0
3.24k stars 281 forks source link

Initial http requests have wrong contenttype #1413

Closed jpmikkers closed 2 years ago

jpmikkers commented 2 years ago

OS: windows 11 Transmission deamon: custom, based on transmission RPC spec Transmission remote GUI: v5.18.0

As I'm working on a alternative transmission implementation, I'm using transgui to test my own implementation. I noticed that Transgui's initial 'session-get' RPC requests don't have the correct content-type set in the http request. Transgui sends them as 'text/html', but as per the transmission spec this should be 'application/json'

Subsequent requests DO get the correct contenttype, so I suspect this is just an issue for the initial handshake to retrieve the session id.

jpmikkers commented 2 years ago

thanks!