Fix openapi interceptor bug
This commit is contained in:
parent
82be821628
commit
cc05ff9ad4
|
@ -198,6 +198,8 @@ public class OpenApiInterceptor {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if (requestPath.startsWith("/swagger-ui/")) {
|
||||
|
|
|
@ -154,6 +154,12 @@ public class OpenApiInterceptorTest {
|
|||
assertEquals(400, response.getStatusLine().getStatusCode());
|
||||
}
|
||||
|
||||
get = new HttpGet("http://localhost:" + myServer.getPort() + "/fhir?foo=foo");
|
||||
get.addHeader(Constants.HEADER_ACCEPT, Constants.CT_HTML);
|
||||
try (CloseableHttpResponse response = myClient.execute(get)) {
|
||||
assertEquals(400, response.getStatusLine().getStatusCode());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue