Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing ":port" from Request URL #802

Closed
kennytnguyen opened this issue Jun 23, 2016 · 2 comments
Closed

Removing ":port" from Request URL #802

kennytnguyen opened this issue Jun 23, 2016 · 2 comments

Comments

@kennytnguyen
Copy link

I'm on swaggerVersion: "1.2" right now and when I send a request URL, it sends a

"https://{server_ip}:{port}/....."

How do I get rid of the ":{port}" values from the Request URL?

my base path looks like

{{server_proto}}://{{server_ip}}/{{api_url}}. but they come out as
{{server_proto}}://{{server_ip}}:{port}/{{api_url}}. it's using internal port.

@kennytnguyen
Copy link
Author

Reference: swagger-api/swagger-ui#2236

@kennytnguyen
Copy link
Author

Fixed. In shred.bundle.js.

url: { get: function() { if (!this.scheme) { return null; } return sprintf("%s://%s%s%s", this.scheme, this.host, getPortString(this.scheme, this.port), //removed Port (this.proxy ? "/" : this.path) + (this.query ? ("?" + this.query) : "")); },

you can take out the colon from %s://%s%s%s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant