From 9ed95f2e49e7379fd09bbca564863ab5585ead54 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Tue, 6 Jun 2017 17:03:32 -0700 Subject: [PATCH] protocol: fix data type for event errorcode, should be an int --- omaha/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omaha/protocol.go b/omaha/protocol.go index 8a2d411..ed5e092 100644 --- a/omaha/protocol.go +++ b/omaha/protocol.go @@ -142,7 +142,7 @@ type PingRequest struct { type EventRequest struct { Type EventType `xml:"eventtype,attr"` Result EventResult `xml:"eventresult,attr"` - ErrorCode string `xml:"errorcode,attr,omitempty"` + ErrorCode int `xml:"errorcode,attr,omitempty"` NextVersion string `xml:"nextversion,attr,omitempty"` PreviousVersion string `xml:"previousversion,attr,omitempty"` }