mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 22:40:58 +03:00
Add single_file format implementation
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user