Closed martialblog closed 4 years ago
I tried to refactor this PR https://github.com/drewkerrigan/nagios-http-json/pull/47 to include the wanted functionality.
Refactors:
New:
if e.info().get_content_subtype() == "json": json_data = e.read()
I'm not 100% certain this is the best solution... There might be some changes before merging this.
@drewkerrigan I'd love your feedback on this. Cheers, Markus
I tried to refactor this PR https://github.com/drewkerrigan/nagios-http-json/pull/47 to include the wanted functionality.
Refactors:
New:
I'm not 100% certain this is the best solution... There might be some changes before merging this.