removed replace %2F
This commit is contained in:
parent
82cd925e35
commit
32f8a0d540
@ -69,7 +69,7 @@ public class SNARKServer(val dataHolder: DataHolder, val port: Int): Runnable {
|
|||||||
private var relativePath = "/"
|
private var relativePath = "/"
|
||||||
|
|
||||||
private suspend fun receivePath(call: ApplicationCall) {
|
private suspend fun receivePath(call: ApplicationCall) {
|
||||||
relativePath = call.receiveText().drop(5).replace("%2F", "/")
|
relativePath = call.receiveParameters()["path"]?:"/"
|
||||||
call.respondText("Path is successfully changed to: " + relativePath)
|
call.respondText("Path is successfully changed to: " + relativePath)
|
||||||
}
|
}
|
||||||
private suspend fun renderGet(call: ApplicationCall) {
|
private suspend fun renderGet(call: ApplicationCall) {
|
||||||
|
Loading…
Reference in New Issue
Block a user