Skip to content

Commit

Permalink
Merge pull request #12 from l0wl3vel/describe-method
Browse files Browse the repository at this point in the history
Fixes for Describe method
  • Loading branch information
l0wl3vel authored Jan 22, 2024
2 parents 566c936 + 27a04af commit d5ad59b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (c *Client) Describe(path string) (Object, error) {

resp, err := c.R().
SetHeader("Accept", "application/json").
SetResult(object).
SetResult(&object).
Execute("DESCRIBE", path)
c.logger.Debugf("Describe Request Response: %v", resp)

Expand Down
1 change: 1 addition & 0 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func TestMain(m *testing.M) {
}

func TestDescribeFile(t *testing.T) {
t.Cleanup(func() { DeleteTestPath(t) })
_, name := UploadRandomFile1MB(t)
obj, err := bunnyclient.Describe(name)
if err != nil {
Expand Down

0 comments on commit d5ad59b

Please sign in to comment.