Skip to content

Commit a705a9e

Browse files
authored
fix: adjust docs on how to stringify parsed object payloads (#112)
Closes: #111 Signed-off-by: Patrick Jungermann [email protected]
1 parent e0eabf3 commit a705a9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Learn more at [Validating payloads from GitHub](https://docs.github.com/en/devel
124124
<strong>Required.</strong>
125125
Webhook request payload as received from GitHub.<br>
126126
<br>
127-
If you have only access to an already parsed object, stringify it with <code>JSON.stringify(payload, null, 2) + '\n'</code>
127+
If you have only access to an already parsed object, stringify it with <code>JSON.stringify(payload)</code>
128128
</td>
129129
</tr>
130130
</table>
@@ -163,7 +163,7 @@ await verify(secret, eventPayloadString, signature);
163163
<strong>Required.</strong>
164164
Webhook request payload as received from GitHub.<br>
165165
<br>
166-
If you have only access to an already parsed object, stringify it with <code>JSON.stringify(payload, null, 2) + '\n'</code>
166+
If you have only access to an already parsed object, stringify it with <code>JSON.stringify(payload)</code>
167167
</td>
168168
</tr>
169169
<tr>

0 commit comments

Comments
 (0)