Skip to content

Commit d24958e

Browse files
committed
Panic if used with PBS push sync feature (#70)
It appears, for the push sync feature to work correctly with the proxy, it is required to initialize the writer with a default chunks size, as it is not passed via api calls.
1 parent b8bc04b commit d24958e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/pmoxs3backuproxy/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
656656
FidxName: fidxname,
657657
Size: S,
658658
ReuseCSUM: reusecsum,
659+
Chunksize: 4194304,
659660
}
660661
writer_mux.Unlock()
661662
w.Header().Add("Content-Type", "application/json")

0 commit comments

Comments
 (0)