Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mzp0514 committed Apr 28, 2021
1 parent 3d78af4 commit 77fe88c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ public void close() throws IOException {

@Override
public void open(org.apache.iotdb.db.sink.alertmanager.AlertManagerConfiguration configuration) {
this.request = new HttpPost(configuration.getEndpoint());
request.setHeader("Accept", "application/json");
request.setHeader("Content-type", "application/json");
if (this.request == null) {
this.request = new HttpPost(configuration.getEndpoint());
request.setHeader("Accept", "application/json");
request.setHeader("Content-type", "application/json");
}

openClient();
}
Expand Down

0 comments on commit 77fe88c

Please sign in to comment.