removed logic to make default location

This commit is contained in:
Tony Tam 2016-01-04 20:20:37 -08:00
parent 37a370e662
commit 40a11004b3

View File

@ -52,17 +52,6 @@ public class Bootstrap extends HttpServlet {
}
}
String host = config.getInitParameter("generator.host");
if(host == null) {
host = "generator.swagger.io";
}
bc.setHost(host);
String scheme = config.getInitParameter("generator.protocol");
if(host == null) {
scheme = "https";
}
bc.setSchemes(new String[]{scheme});
bc.setLicenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html");
bc.setResourcePackage("io.swagger.generator.resource");
bc.setScan(true);