diff options
author | Wolfy-J <[email protected]> | 2018-01-28 15:25:57 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-28 15:25:57 +0300 |
commit | cb7629dbe105e6ee2bf9b2b1f3619dff596d0aa1 (patch) | |
tree | 26a5d6c2077b1cd77878fa009ff4fca448827e5b /protocol.go | |
parent | a28ac27bd762ad65ff4cbbeaa8e2b03c9f0d1c32 (diff) |
head parsing for raw data
Diffstat (limited to 'protocol.go')
-rw-r--r-- | protocol.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocol.go b/protocol.go index b78f2807..0a0ec37f 100644 --- a/protocol.go +++ b/protocol.go @@ -21,7 +21,7 @@ func sendHead(rl goridge.Relay, v interface{}) error { } if data, ok := v.([]byte); ok { - return rl.Send(data, goridge.PayloadControl) + return rl.Send(data, goridge.PayloadControl|goridge.PayloadRaw) } data, err := json.Marshal(v) @@ -43,7 +43,6 @@ func fetchPID(rl goridge.Relay) (pid int, err error) { } link := &pidCommand{} - //log.Println(string(body)) if err := json.Unmarshal(body, link); err != nil { return 0, err } |