mirror of
https://github.com/emo2007/block-accounting.git
synced 2025-01-18 15:36:27 +00:00
header fix
This commit is contained in:
parent
364b2804de
commit
e7a8ccd86a
@ -247,7 +247,7 @@ func (i *chainInteractor) PubKey(ctx context.Context, user *models.User) ([]byte
|
|||||||
return nil, fmt.Errorf("error build request. %w", err)
|
return nil, fmt.Errorf("error build request. %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
req.Header.Add("x-seed", common.Bytes2Hex(user.Seed()))
|
req.Header.Add("X-Seed", common.Bytes2Hex(user.Seed()))
|
||||||
req.Header.Add("Content-Type", "application/json")
|
req.Header.Add("Content-Type", "application/json")
|
||||||
|
|
||||||
resp, err := http.DefaultClient.Do(req)
|
resp, err := http.DefaultClient.Do(req)
|
||||||
@ -399,7 +399,7 @@ func (i *chainInteractor) PayrollDeploy(
|
|||||||
}
|
}
|
||||||
|
|
||||||
req.Header.Add("Content-Type", "application/json")
|
req.Header.Add("Content-Type", "application/json")
|
||||||
req.Header.Add("x-seed", common.Bytes2Hex(user.Seed()))
|
req.Header.Add("X-Seed", common.Bytes2Hex(user.Seed()))
|
||||||
|
|
||||||
resp, err := http.DefaultClient.Do(req)
|
resp, err := http.DefaultClient.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user