Skip to content

Commit 15277d0

Browse files
committed
[application] #fix websocket client upgrade miss method_raw
1 parent cf4a8fa commit 15277d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

protocol/application/http/request_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ func (r *Request)init(path,ip string,port int) {
1515
}
1616
}
1717
func (r *Request) send()string{
18+
if r.method_raw == "" {
19+
r.method_raw = "GET"
20+
}
1821
// 构建发送的字符串
1922
buf := ""
2023
buf += r.method_raw + " "

0 commit comments

Comments
 (0)