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 am working on a program that needs a binary file to be sent to it, so I downloaded Wasabi, and created this little test program. No, not very clean and yes I know I am just printing null but it is just to see if I am getting to the print. If I supply a txt file, things are fine, as is the two other forms, but any binary file I select results in:
[nioEventLoopGroup-3-4] INFO org.wasabifx.wasabi.interceptors.LoggingInterceptor - [GET] - /bad-request
With the following program:
import org.wasabifx.wasabi.app.AppServer
fun main(args : Array) {
println("Started")
var server = AppServer()
server.get("/testget",{
println(request.bodyParams["filename"])
})
server.post("/testpost",{
println(request.bodyParams["filename"])
})
I am working on a program that needs a binary file to be sent to it, so I downloaded Wasabi, and created this little test program. No, not very clean and yes I know I am just printing null but it is just to see if I am getting to the print. If I supply a txt file, things are fine, as is the two other forms, but any binary file I select results in:
[nioEventLoopGroup-3-4] INFO org.wasabifx.wasabi.interceptors.LoggingInterceptor - [GET] - /bad-request
With the following program:
import org.wasabifx.wasabi.app.AppServer
fun main(args : Array) {
println("Started")
var server = AppServer()
server.get("/testget",{
println(request.bodyParams["filename"])
})
server.post("/testpost",{
println(request.bodyParams["filename"])
})
}
And the following HTML:
<title>Test ClamAV</title> First name:Last name:
First name:
Last name:
Choose a file to upload:
The text was updated successfully, but these errors were encountered: