Skip to content

Commit

Permalink
Merge pull request #6267 from baude/varlinkbuild
Browse files Browse the repository at this point in the history
Fix EOM for SendFile
  • Loading branch information
openshift-merge-robot authored May 18, 2020
2 parents 5bfc145 + 904ee39 commit a1790be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/varlinkapi/transfers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package varlinkapi

import (
"bufio"
"fmt"
"io"
"io/ioutil"
"os"
Expand Down Expand Up @@ -39,7 +40,7 @@ func (i *VarlinkAPI) SendFile(call iopodman.VarlinkCall, ftype string, length in

logrus.Debugf("successfully received %s", outputFile.Name())
// Send an ACK to the client
call.Call.Writer.WriteString(outputFile.Name())
call.Call.Writer.WriteString(fmt.Sprintf("%s:", outputFile.Name()))
call.Call.Writer.Flush()
return nil

Expand Down

0 comments on commit a1790be

Please sign in to comment.