From bea9fd3de5d1d4dbaeef7086fda8e4ed2b24ed77 Mon Sep 17 00:00:00 2001 From: nich0s Date: Fri, 1 May 2020 08:35:04 -0500 Subject: [PATCH] Incorrect File.sep() use - broken on Windows. On Windows: ``` GET /v1/openapi/* [*/*] [*/*] (OpenAPIService._) GET /v1/openapi/redoc [*/*] [text/html] (OpenAPIService._) GET /v1\openapi.yaml [*/*] [text/yaml] (OpenAPIService._) ``` --- .../io/sinistral/proteus/openapi/services/OpenAPIService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proteus-openapi/src/main/java/io/sinistral/proteus/openapi/services/OpenAPIService.java b/proteus-openapi/src/main/java/io/sinistral/proteus/openapi/services/OpenAPIService.java index db4be96..781bd66 100644 --- a/proteus-openapi/src/main/java/io/sinistral/proteus/openapi/services/OpenAPIService.java +++ b/proteus-openapi/src/main/java/io/sinistral/proteus/openapi/services/OpenAPIService.java @@ -319,7 +319,7 @@ public RoutingHandler get() /* * YAML path */ - String pathTemplate = this.applicationPath + File.separator + this.specFilename; + String pathTemplate = this.applicationPath + "/" + this.specFilename; FileResourceManager resourceManager = new FileResourceManager(this.resourcePath.toFile(), 1024);