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 <bzub@users.noreply.github.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
(cherry picked from commit 3eddbbd)
  • Loading branch information
bzub authored and utkuozdemir committed Jul 15, 2022
1 parent bee6536 commit a5cd4e9
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 a5cd4e9

Please sign in to comment.