assume scheme to be http if not present (#4912)

This commit is contained in:
Parag Jain 2017-10-06 14:50:48 -05:00 committed by GitHub
parent 0e856ee806
commit 535c034c06
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class Worker
@JsonProperty("version") String version
)
{
this.scheme = scheme;
this.scheme = scheme == null ? "http" : scheme; // needed for backwards compatibility with older workers (pre-#4270)
this.host = host;
this.ip = ip;
this.capacity = capacity;