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

Ignore searchDomain for localhost and IP #80

Merged
merged 1 commit into from
Mar 29, 2018

Conversation

jkrems
Copy link
Collaborator

@jkrems jkrems commented Mar 29, 2018

Not sure how this stayed un-fixed for so long.

@jkrems
Copy link
Collaborator Author

jkrems commented Mar 29, 2018

Will also backport to 2.x.

.eslintrc Outdated
"extends": "groupon/es5",
"rules": {
"prefer-arrow-callback": 0
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops. looks like we need to fix that in groupon/javascript

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw new Error('Invalid URI ' + JSON.stringify(hostname));
}
if (searchDomain && canApplySearchDomain(hostname)) {
return hostname + '.' + searchDomain + '.';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to force searchDomain to be absolute, or should we let people specify it as my.tld. if they want it to be so?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that would be a breaking change

@jkrems jkrems force-pushed the jk-less-aggressive-search-domain branch from 489377f to 8cfb230 Compare March 29, 2018 19:37
@jkrems jkrems merged commit ae53ec9 into master Mar 29, 2018
@jkrems jkrems deleted the jk-less-aggressive-search-domain branch March 29, 2018 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants