Closed fr4nky80 closed 4 years ago
Hi, thanks for your issue.
This issue looks the same as #117.
I'll try to fix it next week.
As a tempolary workaround, you can try to setting the HostOverride
property to ""
.
"SwaggerEndPoints": [
{
"Key": "user",
"HostOverride": "",
"Config": [
{
"Name": "User API",
"Version": "v1",
"Url": "http://localhost:7071/api/swagger.json"
}
]
}
],
Thanks this works!!!
Describe the bug Only happens with swagger version 2 SwaggerForOcelotMiddleware method invoke, you use this:
but in version 1.4.0 use this:
this makes the HTTP requests duplicate the scheme, example:
http://http://localhost
Expected behavior should be localhost but it's http://localhost, which means that the api calls are incorrect since it includes twice the scheme.
To Reproduce just include version 1.9.0 and expose a service from the gw.