title: aiohttp error invalid constant string
body: <pre><code>#!/usr/bin/env python3.5
  
  import asyncio
  import aiohttp
  
  url = "http://eniig.dk"
  
  async def main():
      try:
          async with aiohttp.ClientSession() as session:
              async with session.get(url) as response:
                  try:
                      body = await response.read()
                      print(response.method)
                      print(body)
                  except UnicodeDecodeError as msg:
                      print(msg)
                      print(body)
      except Exception as msg:
          print(msg)
  
  
  loop = asyncio.get_event_loop()
  loop.run_until_complete(main())
  loop.close()
  </code></pre>
  
  <p>This code gives an error:  </p>
  
  <p><code>400, message='400, message='invalid constant string''</code></p>
  
  <p>If the URL specifies 'https', then everything is OK. But how to avoid an error if the protocol is not known in advance?</p>
  
  <p>What alternatives will advise aiohttp?</p>
  
  <p><strong>UPD:</strong>
  I have not been here for a long time. Forgot to say that the code was run under Debian 8 stable. The problem was solved by replacing the methods ClientSession() and get() by TCPConnector() and request()</p>