serve restic: fix immediate exit when not using stdio

In the lib/http refactor

    52443c2444 restic: refactor to use lib/http

We forgot to serve the data and wait for the server to finish. This is
not tested in the unit tests as it is part of the command line
handler.

Fixes #6644 Fixes #6647
This commit is contained in:
Nick Craig-Wood 2022-12-21 12:32:21 +00:00
parent 0ce5e57c30
commit 6be0644178

View File

@ -173,6 +173,7 @@ with a path of ` + "`/<username>/`" + `.
httpSrv.ServeConn(conn, opts)
return nil
}
s.Wait()
return nil
})
},