From bab9fca5dc46ca27232a75b8d1c42d018d577a85 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 20 Aug 2015 15:07:22 -0700 Subject: [PATCH] nomad: remove magic bytes --- nomad/rpc.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nomad/rpc.go b/nomad/rpc.go index 373a6a634..41c915345 100644 --- a/nomad/rpc.go +++ b/nomad/rpc.go @@ -24,16 +24,6 @@ const ( rpcTLS = 0x04 ) -const ( - // rpcHTTPSMagic is used to detect an incoming HTTPS - // request. TLS starts with the 0x16 magic byte. - rpcHTTPSMagic = 0x16 - - // rpcHTTPMagic is used to detect an incoming HTTP - // request. The request starts with 'HTTP' - rpcHTTPMagic = 0x48 -) - const ( // maxQueryTime is used to bound the limit of a blocking query maxQueryTime = 300 * time.Second