Update tools.go

This commit is contained in:
公明 2025-04-23 17:25:54 +08:00 committed by GitHub
parent 60ce860028
commit f3dc54e22b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,6 +189,8 @@ func generateHTTPRequest(input string) (string, error) {
}
if req.Body != "" {
buffer.WriteString("\n" + req.Body)
} else {
buffer.WriteString("\n\n")
}
fmt.Println(buffer.String())
return buffer.String(), nil