git.cweiske.de
/
shpub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0103f50
)
Fix JSON HTML content sending, according to new tests
author
Christian Weiske
<cweiske@cweiske.de>
Fri, 31 Mar 2017 22:33:51 +0000
(
00:33
+0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Fri, 31 Mar 2017 22:33:51 +0000
(
00:33
+0200)
src/shpub/Request.php
patch
|
blob
|
history
diff --git
a/src/shpub/Request.php
b/src/shpub/Request.php
index 3614d5d69100ff4b1d5a92e25a6da58233068c44..3d7221dc4cd972b4e0bb00cee103a534e76f4ed6 100644
(file)
--- a/
src/shpub/Request.php
+++ b/
src/shpub/Request.php
@@
-225,7
+225,7
@@
class Request
{
if ($isHtml) {
$this->addProperty(
{
if ($isHtml) {
$this->addProperty(
- 'content', [
'html' => $text
]
+ 'content', [
['html' => $text]
]
);
} else {
$this->addProperty('content', $text);
);
} else {
$this->addProperty('content', $text);