title: Error connecting Tsheets api to Google apps script
body: <p>When running the script below from the GAS environment, I get the error message: "Attribute provided with invalid value: Header:Host"</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function fetch() {var settings = {
      "async": true,
      "crossDomain": true,
      "method": "GET",
      "headers": {
        "Authorization": "Bearer "+token,
        "User-Agent": "PostmanRuntime/7.20.1",
        "Accept": "*/*",
        "Cache-Control": "no-cache",
        "Postman-Token": postman_token,
        "Host": "rest.tsheets.com",
        "Accept-Encoding": "gzip, deflate",
        "Connection": "keep-alive",
        "cache-control": "no-cache"
      }
    }
    var now = new Date();
    var day = now.getDate()&gt;9? now.getDate():'0'+now.getDate();
    var date = now.getFullYear()+'-'+now.getMonth()+'-'+day;
    
    var url = organization+'/timesheets?start_date='+date;
    Logger.log(url);
    var response = UrlFetchApp.fetch(url,settings);
    Logger.log(response);
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>The original code was generated using Postman and works with no issues but I translated it from AJAX syntax to GAS and it doesn't work from the GAS environment.</p>