Skip to content

Commit 6a07c6b

Browse files
committed
fix: remove unnecessary initialization of HTTP header key "D"
1 parent 3770df0 commit 6a07c6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ray2sing/naive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func NaiveSingbox(vlessURL string) (*T.Outbound, error) {
5454
func GetHttpHeaders(header string) badoption.HTTPHeader {
5555
kvs := strings.Split(header, ",")
5656
res := badoption.HTTPHeader{}
57-
res["D"] = []string{}
57+
5858
for _, raw := range kvs {
5959
splt := strings.SplitN(raw, ":", 2)
6060
if len(splt) != 2 {

0 commit comments

Comments
 (0)