This is an automated email from the ASF dual-hosted git repository. tianxiaoliang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-kie.git
commit 5b69dc3f15f946632acefd34e0644440e1a28eea Author: wangqijun <wangqj2...@sohu.com> AuthorDate: Tue Jul 2 15:34:14 2019 +0800 remove h.Set("domain", "test") --- client/client.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/client.go b/client/client.go index 34fc9b7..716268c 100644 --- a/client/client.go +++ b/client/client.go @@ -84,7 +84,6 @@ func (c *Client) Put(ctx context.Context, kv model.KVDoc) (*model.KVDoc, error) url := fmt.Sprintf("%s/%s/%s", c.opts.Endpoint, APIPathKV, kv.Key) h := http.Header{} h.Set("Content-Type", "application/json") - h.Set("domain", "test") body, _ := json.Marshal(kv) resp, err := c.c.HTTPDoWithContext(ctx, "PUT", url, h, body) if err != nil { @@ -154,8 +153,6 @@ func (c *Client) Delete(ctx context.Context, kvID, labelID string) error { } h := http.Header{} h.Set("Content-Type", "application/json") - h.Set("domain", "test") - resp, err := c.c.HTTPDoWithContext(ctx, "DELETE", url, h, nil) if err != nil { return err