Since we send 200 response from the Listener, we should expect 200 response from the Client

This commit is contained in:
Asim
2016-05-06 15:44:32 +01:00
parent 8b76e277bc
commit 07687b9595
2 changed files with 79 additions and 12 deletions

View File

@@ -174,6 +174,10 @@ func (h *httpTransportClient) Recv(m *Message) error {
return err
}
if rsp.StatusCode != 200 {
return errors.New(rsp.Status + ": " + string(b))
}
mr := &Message{
Header: make(map[string]string),
Body: b,