From c4e9b63ef3d8eb45184cace683b748ec2d3f0f28 Mon Sep 17 00:00:00 2001 From: mauritsvanrees Date: Fri, 16 Dec 2022 00:08:09 +0100 Subject: [PATCH] [fc] Repository: plone.protect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Branch: refs/heads/master Date: 2022-12-14T23:01:46+09:00 Author: Jérome Perrin (perrinjerome) Commit: https://github.com/plone/plone.protect/commit/c03cfb4cfa9f8ab117c07bd77cd22a1afcd55acf testing: explicitly set response content type header to html Files changed: M plone/protect/testing.py Repository: plone.protect Branch: refs/heads/master Date: 2022-12-16T00:08:09+01:00 Author: Maurits van Rees (mauritsvanrees) Commit: https://github.com/plone/plone.protect/commit/bdf0a00b15e2e9a0daf4bd3543b112cd59750d6e Merge pull request #97 from perrinjerome/fix/zope_content_type testing: explicitly set response content type header to html Files changed: M plone/protect/testing.py --- last_commit.txt | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/last_commit.txt b/last_commit.txt index 78b199ac88..10d0e238e4 100644 --- a/last_commit.txt +++ b/last_commit.txt @@ -1,22 +1,32 @@ -Repository: plone.restapi +Repository: plone.protect Branch: refs/heads/master -Date: 2022-12-14T18:40:30-03:00 -Author: David Glick (davisagli) -Commit: https://github.com/plone/plone.restapi/commit/aa1a617d0851c8bec6c7bf6dfe506b29f9232ca4 +Date: 2022-12-14T23:01:46+09:00 +Author: Jérome Perrin (perrinjerome) +Commit: https://github.com/plone/plone.protect/commit/c03cfb4cfa9f8ab117c07bd77cd22a1afcd55acf -Update links to demo site (#1555) +testing: explicitly set response content type header to html -* Update links to demo site - -Refs https://github.com/plone/documentation/issues/1376 - -* Create 1555.doc +Files changed: +M plone/protect/testing.py + +b'diff --git a/plone/protect/testing.py b/plone/protect/testing.py\nindex 70455f1..126d004 100644\n--- a/plone/protect/testing.py\n+++ b/plone/protect/testing.py\n@@ -39,6 +39,7 @@ def __call__(self):\n if \'submit1\' in self.request.form or \'submit2\' in self.request.form:\n self.context.foo = \'bar\'\n self.context._p_changed = True\n+ self.request.response.setHeader(\'Content-Type\', \'text/html\')\n return """\n \n \n' + +Repository: plone.protect + + +Branch: refs/heads/master +Date: 2022-12-16T00:08:09+01:00 +Author: Maurits van Rees (mauritsvanrees) +Commit: https://github.com/plone/plone.protect/commit/bdf0a00b15e2e9a0daf4bd3543b112cd59750d6e + +Merge pull request #97 from perrinjerome/fix/zope_content_type + +testing: explicitly set response content type header to html Files changed: -A news/1555.doc -M README.rst +M plone/protect/testing.py -b'diff --git a/README.rst b/README.rst\nindex 415189d73..96ffa4d4a 100644\n--- a/README.rst\n+++ b/README.rst\n@@ -28,19 +28,19 @@ Getting started\n \n A live demo of Plone 6 with the latest ``plone.restapi`` release is available at:\n \n-https://6.demo.plone.org/\n+https://demo.plone.org/\n \n An example GET request on the portal root is the following.\n \n .. code-block:: shell\n \n- curl -i https://6.demo.plone.org/++api++ -H "Accept: application/json"\n+ curl -i https://demo.plone.org/++api++ -H "Accept: application/json"\n \n An example POST request to create a new document is the following.\n \n .. code-block:: shell\n \n- curl -i -X POST https://6.demo.plone.org/++api++ \\\n+ curl -i -X POST https://demo.plone.org/++api++ \\\n -H "Accept: application/json" \\\n -H "Content-Type: application/json" \\\n --data-raw \'{"@type": "Document", "title": "My Document"}\' \\\ndiff --git a/news/1555.doc b/news/1555.doc\nnew file mode 100644\nindex 000000000..e8b79b454\n--- /dev/null\n+++ b/news/1555.doc\n@@ -0,0 +1 @@\n+Update links to the demo site in the README. [davisagli]\n' +b'diff --git a/plone/protect/testing.py b/plone/protect/testing.py\nindex 70455f1..126d004 100644\n--- a/plone/protect/testing.py\n+++ b/plone/protect/testing.py\n@@ -39,6 +39,7 @@ def __call__(self):\n if \'submit1\' in self.request.form or \'submit2\' in self.request.form:\n self.context.foo = \'bar\'\n self.context._p_changed = True\n+ self.request.response.setHeader(\'Content-Type\', \'text/html\')\n return """\n \n \n'