Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit a1c0abe

Browse files
authored
Merge pull request #1 from h0bot/udplineprotocol
Sending via UDP line protocol throws
2 parents c9fcede + 21d025e commit a1c0abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def send_packet(self, packet, protocol='json'):
779779
if protocol == 'json':
780780
data = make_lines(packet).encode('utf-8')
781781
elif protocol == 'line':
782-
data = ('\n'.join(data) + '\n').encode('utf-8')
782+
data = ('\n'.join(packet) + '\n').encode('utf-8')
783783
self.udp_socket.sendto(data, (self._host, self.udp_port))
784784

785785

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy