Tests - API - Import - Removed 'content-type': 'text/plain' from the test because this should be assumed.

This commit is contained in:
dgtlmoon
2025-10-25 19:04:09 +02:00
parent 8aa012ba8e
commit 9ba2094f75

View File

@@ -394,7 +394,8 @@ def test_api_import(client, live_server, measure_memory_usage):
res = client.post(
url_for("import") + "?tag=import-test",
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
)