title: Error Domain=NSPOSIXErrorDomain Code=100 "Protocol error"
body: <p>I am trying to call a service using Alamofire using a .get method.
  The request has nothing special no parameters just an Authorization header.</p>
  
  <p>I am going a bit mad here because to request works fine when I run it on postman with the same URL and Authorization token, but when I run my app code with Alamofire it returns this error:</p>
  
  <blockquote>
    <p>Error Domain=NSPOSIXErrorDomain Code=100 "Protocol error" UserInfo={NSErrorPeerAddressKey={length = 16, capacity = 16, bytes = 0x100201bbd83ad0b10000000000000000}, _kCFStreamErrorCodeKey=100, _kCFStreamErrorDomainKey=1}</p>
  </blockquote>
  
  <p>I am using:</p>
  
  <pre><code>Alamofire.request("https://myserverURL", method: .get, parameters: [:], encoding: JSONEncoding.default, headers: ["Authorization":"myToken"])
          .responseJSON {response in 
  
      guard response.result.error == nil else { 
         //HERE IS WHERE IS GOING IN WITH THE ERROR
      }
  }
  </code></pre>
  
  <p>Any thoughts will be much appreciated or point me in the right direction :)</p>