Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Removing hard-coded repository URLs #48

Closed
wants to merge 2 commits into from
Closed

Removing hard-coded repository URLs #48

wants to merge 2 commits into from

Conversation

escowles
Copy link
Contributor

// if no existing client matched, create a new one
final String baseURL;
if ( repositoryURL.indexOf("/rest/") > 0 ) {
baseURL = repositoryURL.substring(0, repositoryURL.indexOf("/rest/") + 6);
Copy link

Choose a reason for hiding this comment

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

Instead of magic number "6", use length of a variable that holds "/rest/".

…om JMS messages (or the reindex servlet's baseURI parameter)
…iables for likely webapp/REST API path components
@awoods
Copy link

awoods commented Aug 12, 2014

Resolved with: 1ae653d

@awoods awoods closed this Aug 12, 2014
@awoods awoods deleted the jms-baseurl branch August 12, 2014 20:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants