changeset 595:b6c1f0c9ca15

fix test_error_codes_content_type
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 18 Dec 2023 22:27:04 +0100
parents 27be80b4b1a9
children b1e1c7149a37
files GenerateConfigurationForTests.py Tests/Tests.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/GenerateConfigurationForTests.py	Mon Dec 18 10:43:41 2023 +0100
+++ b/GenerateConfigurationForTests.py	Mon Dec 18 22:27:04 2023 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 
 # Orthanc - A Lightweight, RESTful DICOM Store
 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
--- a/Tests/Tests.py	Mon Dec 18 10:43:41 2023 +0100
+++ b/Tests/Tests.py	Mon Dec 18 22:27:04 2023 +0100
@@ -10032,7 +10032,7 @@
         self.assertEqual('404', headers['status'])
 
         if IsOrthancVersionAbove(_REMOTE, 1, 12, 2):
-            self.assertEqual('application/json', headers['content-type'])
+            self.assertEqual('text/plain', headers['content-type'])
 
         (headers, body) = DoPutRaw(_REMOTE, '/system', 'hello')
         self.assertEqual('405', headers['status'])