mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
fix error message
This commit is contained in:
@@ -15,7 +15,7 @@ func (hre *HTTPRequestEncode) Process(ctx context.Context, payload any) (any, er
|
|||||||
payloadRequest, ok := payload.(*http.Request)
|
payloadRequest, ok := payload.(*http.Request)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, fmt.Errorf("http.request.encode processor only accepts an OSCMessage")
|
return nil, fmt.Errorf("http.request.encode processor only accepts an http.Request")
|
||||||
}
|
}
|
||||||
|
|
||||||
bytes, err := io.ReadAll(payloadRequest.Body)
|
bytes, err := io.ReadAll(payloadRequest.Body)
|
||||||
|
|||||||
Reference in New Issue
Block a user