Permalink
Browse files

fix(rest): Do not reset headers when headers defined

  • Loading branch information...
mvrueden committed Aug 30, 2017
1 parent 9467222 commit 2f360fd7a48d8abf8259eacbe6aa8181cb6419e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rest/GrafanaHTTP.ts
View
@@ -143,7 +143,7 @@ export class GrafanaHTTP extends AbstractHTTP {
const ret = clonedeep(allOptions);
ret.transformResponse = []; // we do this so we can post-process only on success
if (!allOptions.headers) {
if (allOptions.headers) {
ret.headers = clonedeep(allOptions.headers);
} else {
ret.headers = {};

0 comments on commit 2f360fd

Please sign in to comment.