Skip to content

Commit 1b949d8

Browse files
committed
misc after review
1 parent c661cf6 commit 1b949d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

InfluxDb.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,10 @@ void Influxdb::begin() {
9696
if (_port == 443) {
9797
if (_fingerPrint)
9898
client.setFingerprint(_fingerPrint);
99-
http.begin(client, _host, _port, "/api/v2/write?org=" + _org + "&bucket=" + _bucket,
100-
true);
99+
http.begin(client, _host, _port, "/api/v2/write?org=" + _org + "&bucket=" + _bucket, true);
101100
} else {
102101
http.begin(_host, _port, "/api/v2/write?org=" + _org + "&bucket=" + _bucket);
103102
}
104-
http.addHeader("Authorization", "Token " + _token);
105103
} else {
106104
if (_user && _pass) {
107105
http.begin(_host, _port, "/write?u=" + _user + "&p=" + _pass + "&db=" + _db);

0 commit comments

Comments
 (0)