Skip to content

Commit

Permalink
Fix header parsing to split on the first colon only
Browse files Browse the repository at this point in the history
  • Loading branch information
iafuad committed Jan 25, 2025
1 parent e799a1c commit af75429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changedetectionio/model/App.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def parse_headers_from_text_file(filepath):
for l in f.readlines():
l = l.strip()
if not l.startswith('#') and ':' in l:
(k, v) = l.split(':')
(k, v) = l.split(':', 1) # Split only on the first colon
headers[k.strip()] = v.strip()

return headers

0 comments on commit af75429

Please sign in to comment.