Skip to content

Commit

Permalink
handle http error
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed Oct 13, 2017
1 parent d42535c commit 35b7113
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions storage/http/item.go
Original file line number Diff line number Diff line change
@@ -73,6 +73,10 @@ func (i *item) Open() (io.ReadCloser, error) {
}

response, err := i.client.Do(req)
if err != nil {
return nil, err
}

return response.Body, err
}

0 comments on commit 35b7113

Please # to comment.