Skip to content

Commit

Permalink
fix: use http response writer directly
Browse files Browse the repository at this point in the history
Fixes an issue with fmt.Fprint formatting byte arrays.

Signed-off-by: bzub <[email protected]>
Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
bzub authored and smira committed Jun 29, 2022
1 parent a06135a commit 3eddbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sidero-controller-manager/internal/ipxe/ipxe_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var (
)

func bootFileHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, embeddedScriptBuf.Bytes())
w.Write(embeddedScriptBuf.Bytes())
}

//nolint:unparam
Expand Down

0 comments on commit 3eddbbd

Please sign in to comment.