Fixes #758, uses v2 specialize for env versions 2 or higher (#911)

This commit is contained in:
Vishal
2018-10-01 10:07:49 +05:30
committed by GitHub
parent 7deb45bed2
commit 9f83d70b63
+1 -1
View File
@@ -114,7 +114,7 @@ func specializePod(f *fetcher.Fetcher, fetchPayload *string, loadPayload *string
var specializeURL string
var reader *bytes.Reader
if envVersion == 2 {
if envVersion >= 2 {
contentType = "application/json"
specializeURL = "http://localhost:8888/v2/specialize"
reader = bytes.NewReader([]byte(*loadPayload))