From 3005526e3213c9d9dc3bee5da0c02050d1443539 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 12 Dec 2016 22:46:15 +0100 Subject: [PATCH] Fix response option --- common/protocol/headers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/protocol/headers.go b/common/protocol/headers.go index 5f1b0d9e7..33dbe5b29 100644 --- a/common/protocol/headers.go +++ b/common/protocol/headers.go @@ -67,7 +67,7 @@ func (v *ResponseOption) Set(option ResponseOption) { } func (v ResponseOption) Has(option ResponseOption) bool { - return (v | option) == option + return (v & option) == option } func (v *ResponseOption) Clear(option ResponseOption) {