We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c7797 commit a3c6037Copy full SHA for a3c6037
modules/setting/setting.go
@@ -6,8 +6,6 @@
6
package setting
7
8
import (
9
- "crypto/sha256"
10
- "encoding/hex"
11
"encoding/base64"
12
"fmt"
13
"math"
@@ -763,8 +761,7 @@ func loadFromConf(allowEmpty bool, extraConfig string) {
763
761
}
764
762
765
AbsoluteAssetURL = MakeAbsoluteAssetURL(AppURL, StaticURLPrefix)
766
- versionHash := sha256.Sum256([]byte(AppVer))
767
- AssetVersion = hex.EncodeToString(versionHash[:])[0:8]
+ AssetVersion = url.QueryEscape(AppVer)
768
769
manifestBytes := MakeManifestData(AppName, AppURL, AbsoluteAssetURL)
770
ManifestData = `application/json;base64,` + base64.StdEncoding.EncodeToString(manifestBytes)
0 commit comments