File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
reposilite-backend/src/main/kotlin/com/reposilite Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ internal class NotFoundHandler(private val frontendFacade: FrontendFacade) : Han
27
27
28
28
private val handler: (Context ) -> Unit = { ctx ->
29
29
if (ctx.resultString() == null && ctx.resultStream() == null && ctx.resultStream() == null ) {
30
- ctx.status(NOT_FOUND ).html(frontendFacade.createNotFoundPage(ctx.req.requestURI, " " ))
30
+ ctx.status(NOT_FOUND ).html(frontendFacade.createNotFoundPage(ctx.req() .requestURI, " " ))
31
31
}
32
32
}
33
33
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import io.javalin.http.ExceptionHandler
22
22
internal class FailureHandler (private val failureFacade : FailureFacade ) : ExceptionHandler<Exception> {
23
23
24
24
override fun handle (exception : Exception , context : Context ) {
25
- failureFacade.throwException(context.req.requestURI, exception)
25
+ failureFacade.throwException(context.req() .requestURI, exception)
26
26
}
27
27
28
28
}
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import com.reposilite.web.routing.RouteMethod.DELETE
31
31
import com.reposilite.web.routing.RouteMethod.GET
32
32
import com.reposilite.web.routing.RouteMethod.PUT
33
33
import io.javalin.http.HttpCode
34
+ import io.javalin.http.bodyAsClass
34
35
import io.javalin.openapi.HttpMethod
35
36
import io.javalin.openapi.OpenApi
36
37
import io.javalin.openapi.OpenApiContent
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ internal object JavalinConfiguration {
85
85
config.http.asyncTimeout = 1000L * 60 * 60 * 10 // 10min
86
86
87
87
config.core.contextResolvers {
88
- it.ip = { ctx -> ctx.header(webSettings.get().forwardedIp) ? : ctx.req.remoteAddr }
88
+ it.ip = { ctx -> ctx.header(webSettings.get().forwardedIp) ? : ctx.req() .remoteAddr }
89
89
}
90
90
91
91
when (localConfiguration.compressionStrategy.get().lowercase()) {
You can’t perform that action at this time.
0 commit comments