Skip to content

Commit de92c2f

Browse files
author
bloom
committed
pingoo: improve wasm downlaoding
1 parent 618b39d commit de92c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pingoo-go/wasm_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (client *Client) refreshPingooWasm(ctx context.Context) (err error) {
8181
}
8282
defer pingooWasmRes.Data.Close()
8383

84-
if pingooWasmRes.NotModified || pingooWasmRes.Etag == *currentPingooWasmEtag {
84+
if pingooWasmRes.NotModified || pingooWasmRes.Etag == *currentPingooWasmEtag && pingooWasmRes.Etag != "" {
8585
logger.Debug("pingoo: no new pingoo.wasm is available")
8686
return nil
8787
}

0 commit comments

Comments
 (0)