Skip to content

Commit 036989f

Browse files
committed
Made it clear that server.inject.payload also accepts an object
1 parent d7fd5a8 commit 036989f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

API.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,7 @@ for performing injections, with some additional options and response properties:
10231023
used to automatically set an HTTP 'Host' header, unless one was specified in `headers`.
10241024
- `headers` - an object with optional request headers where each key is the header name and the
10251025
value is the header content. Defaults to no additions to the default Shot headers.
1026-
- `payload` - an optional string or buffer containing the request payload (object must be
1027-
manually converted to a string first). Defaults to no payload. Note that payload processing
1026+
- `payload` - an optional string, buffer or object containing the request payload. In case of an object it will be converted to a string for you. Defaults to no payload. Note that payload processing
10281027
defaults to `'application/json'` if no 'Content-Type' header provided.
10291028
- `credentials` - an optional credentials object containing authentication information. The
10301029
`credentials` are used to bypass the default authentication strategies, and are validated

0 commit comments

Comments
 (0)