Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: neicnordic/sda-download
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d6a6e93b5c5974c48ebf60fe6e667bb7e77dd1ca
Choose a base ref
..
head repository: neicnordic/sda-download
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 53c1c3619b5cad305a1ab60d8873b5ff26956e03
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 api/sda/sda.go
2 changes: 1 addition & 1 deletion api/sda/sda.go
Original file line number Diff line number Diff line change
@@ -262,7 +262,7 @@ var sendStream = func(reader *streaming.Crypt4GHReader, writer http.ResponseWrit

// Loop until we've read what we should (if no/faulty end given, that's EOF)
for end == 0 || togo > 0 {
rbuf := buf[:]
rbuf := buf

if end != 0 && togo < 4096 {
// If we don't want to read as much as 4096 bytes