1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-18 21:57:50 +02:00

removed unused options struct

This commit is contained in:
Gani Georgiev 2023-12-06 20:43:30 +02:00
parent f7df737c45
commit 16da7d9e1a
2 changed files with 0 additions and 9 deletions

View File

@ -80,11 +80,6 @@ func NewFileFromMultipart(mh *multipart.FileHeader) (*File, error) {
return f, nil
}
type UrlOptions struct {
Context context.Context
Url string
}
// NewFileFromUrl creates a new File from the provided url by
// downloading the resource and load it as BytesReader.
//

View File

@ -114,10 +114,6 @@ func TestNewFileFromMultipart(t *testing.T) {
}
func TestNewFileFromUrlTimeout(t *testing.T) {
// timeout
// invalid response
// valid response
srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/error" {
w.WriteHeader(http.StatusInternalServerError)