Skip to content

Commit

Permalink
fix(kv_store): allow file read support (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist committed May 9, 2023
1 parent 85f6975 commit b27dc28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fastly/kv_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ func (c *Client) InsertKVStoreKey(i *InsertKVStoreKeyInput) error {
}

path := "/resources/stores/kv/" + i.ID + "/keys/" + i.Key
resp, err := c.Put(path, &RequestOptions{Body: io.NopCloser(strings.NewReader(i.Value))})
resp, err := c.Put(path, &RequestOptions{
Body: io.NopCloser(strings.NewReader(i.Value)),
BodyLength: int64(len(i.Value)),
})
if err != nil {
return err
}
Expand Down

0 comments on commit b27dc28

Please sign in to comment.