mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-10-30 14:17:40 +00:00
Tests - API - Import - Removed 'content-type': 'text/plain' from the test because this should be assumed.
This commit is contained in:
@@ -394,7 +394,8 @@ def test_api_import(client, live_server, measure_memory_usage):
|
|||||||
res = client.post(
|
res = client.post(
|
||||||
url_for("import") + "?tag=import-test",
|
url_for("import") + "?tag=import-test",
|
||||||
data='https://website1.com\r\nhttps://website2.com',
|
data='https://website1.com\r\nhttps://website2.com',
|
||||||
headers={'x-api-key': api_key, 'content-type': 'text/plain'},
|
# We removed 'content-type': 'text/plain', the Import API should assume this if none is set #3547 #3542
|
||||||
|
headers={'x-api-key': api_key},
|
||||||
follow_redirects=True
|
follow_redirects=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user