Add single_file format implementation

This commit is contained in:
2023-04-02 16:12:57 +03:00
parent 23db2402c4
commit 1807564f26
4 changed files with 233 additions and 4 deletions

View File

@@ -33,6 +33,10 @@ func (h *Headers) Process(ctx context.Context, url string) ([]entity.File, error
return nil, fmt.Errorf("call url: %w", doErr)
}
if resp.Body != nil {
_ = resp.Body.Close()
}
headersFile, err = h.newFile(resp.Header)
if err != nil {