title: Adding http headers in Angular 6
body: <p>Can anyone tell me if this is the correct way to add headers to http requests in Angular 6?</p>
  
  <p>When I make the call via SwaggerUI, I can see the headers should be:</p>
  
  <pre><code>url -X GET --header 'Accept: application/json' --header 'zumo-api-version: 2.0.0' 'https://myurl/tables/stuff'
  </code></pre>
  
  <p>so I have added the following:</p>
  
  <pre><code>let headers: HttpHeaders = new HttpHeaders();
  headers = headers.append('HttpHeader1', 'Accept:application/json');
  headers = headers.append('HttpHeader2', 'zumo-api-version:2.0.0');
  </code></pre>
  
  <p>And then the call:</p>
  
  <pre><code>getStuff(){
      return this.http.get('https://myurl/tables/stuff', {headers})
    }
  </code></pre>
  
  <p>There is no failure but nothing is returned, and I know that there should be.</p>
  
  <p>thanks</p>
  
  <p>UPDATE</p>
  
  <p>Have just noticed that the url in my call is actually https not http, would that make any difference?</p>
  
  <pre><code>getStuff(){
          return this.https.get('https://myurl/tables/stuff', {headers})
        }
  </code></pre>