From 852a69862959a20c04ae1045ca3cf22e09492a97 Mon Sep 17 00:00:00 2001 From: bwees Date: Wed, 19 Oct 2022 19:14:01 -0400 Subject: [PATCH] add optional for field --- changedetectionio/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/forms.py b/changedetectionio/forms.py index 627c85619..34c54bda2 100644 --- a/changedetectionio/forms.py +++ b/changedetectionio/forms.py @@ -358,7 +358,7 @@ class watchForm(commonSettingsForm): title = StringField('Title', default='') ignore_text = StringListField('Ignore text', [ValidateListRegex()]) - external_header_server = fields.URLField('External Header Server', validators=[validateURL()]) + external_header_server = fields.URLField('External Header Server', validators=[validators.Optional(), validateURL()]) headers = StringDictKeyValue('Request headers') body = TextAreaField('Request body', [validators.Optional()]) method = SelectField('Request method', choices=valid_method, default=default_method)