We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f051062 commit a5144acCopy full SHA for a5144ac
internal/param/param.go
@@ -4,6 +4,7 @@ import (
4
"bufio"
5
"fmt"
6
"io"
7
+ "strconv"
8
"strings"
9
)
10
@@ -17,9 +18,9 @@ type Param struct {
17
18
// String returns the formatted parameter
19
func (p Param) String() string {
20
if p.Quote {
- return fmt.Sprintf("%s=%q", p.Key, p.Value)
21
+ return p.Key + "=" + strconv.Quote(p.Value)
22
}
- return fmt.Sprintf("%s=%s", p.Key, p.Value)
23
+ return p.Key + "=" + p.Value
24
25
26
// Format formats the parameters to be included in the header
0 commit comments