Skip to content

Commit

Permalink
fix(rest): Do not reset headers when headers defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus von Rüden committed Aug 30, 2017
1 parent 9467222 commit 2f360fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest/GrafanaHTTP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 2f360fd

Please sign in to comment.