Merge pull request #1834 from frinux/patch-2

Fixed bug: basePath should not be empty
This commit is contained in:
wing328 2016-01-11 11:57:26 +08:00
commit 391eb1bcb0

View File

@ -246,9 +246,6 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
@Override
public void preprocessSwagger(Swagger swagger) {
if ("/".equals(swagger.getBasePath())) {
swagger.setBasePath("");
}
String host = swagger.getHost();
String port = "8080";