Closed AndrewReitz closed 5 years ago
Possibly related to #2940
Try this:
interface TelegramBotService { @GET("/bot{token}/getUpdates") fun getUpdates(@Path("token") token: String): Call<Any> }
Note the leading /
.
This is a dupe of #3080 actually. We need to make ./stuff
work since the base URL is guaranteed to end in a /
it's not path traversal
This will fail with:
By url encoding the api-token and changing the Path annotation to
(@Path("token", encoded = true)
this will work.Seems like something that I would expect to be done by retrofit automatically. Let me know if I can provide any more details.