We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ca774 commit 20a86daCopy full SHA for 20a86da
splunklib/modularinput/event_writer.py
@@ -82,4 +82,5 @@ def write_xml_document(self, document):
82
83
def close(self):
84
"""Write the closing </stream> tag to make this XML well formed."""
85
- self._out.write(b"</stream>")
+ if self.header_written:
86
+ self._out.write(b"</stream>")
0 commit comments