Skip to content

Commit

Permalink
refactor: change next line
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Sep 15, 2024
1 parent caa8f4d commit d7ce7ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/pkg/network/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (n *HTTPNode) action(proc *process.Process, inPck *packet.Packet) (*packet.
if err := types.Unmarshal(inPck.Payload(), req); err != nil {
req.Body = inPck.Payload()
}

if req.Method == "" {
if req.Body == nil {
req.Method = http.MethodGet
Expand Down

0 comments on commit d7ce7ce

Please sign in to comment.