diff --git a/app/arweave/resolve.go b/app/arweave/resolve.go index 66bb4da7..2841a92f 100644 --- a/app/arweave/resolve.go +++ b/app/arweave/resolve.go @@ -89,7 +89,7 @@ func (c *AssetResolver) ResolveClaims(claim_ids []string) (map[string]string, er return nil, err } - jsonResponse, err := c.makeRequest(http.MethodGet, c.batchClaimResolverUrl, jsonData) + jsonResponse, err := c.makeRequest(http.MethodPost, c.batchClaimResolverUrl, jsonData) if err != nil { return nil, err } diff --git a/app/query/processors.go b/app/query/processors.go index 1ec436e0..1799cef7 100644 --- a/app/query/processors.go +++ b/app/query/processors.go @@ -268,8 +268,9 @@ func preflightHookGet(caller *Caller, ctx context.Context) (*jsonrpc.RPCResponse arUrl, err := arweave.GetClaimUrl(config.GetArfleetCDN(), claim.ClaimID) if err != nil || arUrl == "" { responseResult[ParamStreamingUrl] = contentURL + } else { + responseResult[ParamStreamingUrl] = arUrl } - responseResult[ParamStreamingUrl] = arUrl response.Result = responseResult return response, nil