Skip to content

Commit

Permalink
refactor scriptString handling
Browse files Browse the repository at this point in the history
  • Loading branch information
j3n57h0m45 committed Jun 14, 2024
1 parent b328be8 commit 3025617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/formatters/mikrotik/mikrotik.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func Format(w http.ResponseWriter, r *http.Request) {
script.WriteString(scriptString)

// Get the content length of the script
contentLength := len([]byte(script.String()))
contentLength := len(scriptString)

// Set the Content-Length header
w.Header().Set("Content-Length", strconv.Itoa(contentLength))
Expand Down

0 comments on commit 3025617

Please sign in to comment.