-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branch: refs/heads/master Date: 2022-12-14T23:01:46+09:00 Author: Jérome Perrin (perrinjerome) <jerome@nexedi.com> Commit: plone/plone.protect@c03cfb4 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) <maurits@vanrees.org> Commit: plone/plone.protect@bdf0a00 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
- Loading branch information
1 parent
13e837f
commit c4e9b63
Showing
1 changed file
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) <david@glicksoftware.com> | ||
Commit: https://github.com/plone/plone.restapi/commit/aa1a617d0851c8bec6c7bf6dfe506b29f9232ca4 | ||
Date: 2022-12-14T23:01:46+09:00 | ||
Author: Jérome Perrin (perrinjerome) <jerome@nexedi.com> | ||
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 <html>\n <body>\n' | ||
|
||
Repository: plone.protect | ||
|
||
|
||
Branch: refs/heads/master | ||
Date: 2022-12-16T00:08:09+01:00 | ||
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org> | ||
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 <html>\n <body>\n' | ||
|