Skip to content

Commit d28b911

Browse files
author
Eran Hammer
committed
Merge pull request hapijs#2273 from robertd/fix-typos
Fix few typos in API docs
2 parents 1e47a08 + 69aca06 commit d28b911

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

API.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,7 @@ following options:
20212021
the following options:
20222022
- `origin` - a strings array of allowed origin servers ('Access-Control-Allow-Origin').
20232023
The array can contain any combination of fully qualified origins along with origin
2024-
strings containing a wilcard '*' character, or a single `'*'` origin string. Defaults
2024+
strings containing a wildcard '*' character, or a single `'*'` origin string. Defaults
20252025
to any origin `['*']`.
20262026
- `matchOrigin` - if `true`, matches the value of the incoming 'Origin' header to the
20272027
list of `origin` values ('*' matches anything) and if a match is found, uses that as
@@ -2058,7 +2058,7 @@ following options:
20582058

20592059
- `handler` - an alternative location for the route `handler` option.
20602060

2061-
- `id` - an optional unique indentifier used to look up the route using
2061+
- `id` - an optional unique identifier used to look up the route using
20622062
[`server.lookup()`](#serverlookupid).
20632063

20642064
- `json` - optional arguments passed to `JSON.stringify()` when converting an object or
@@ -2417,7 +2417,7 @@ config to an object containing one of these keys:
24172417
- `'attachment'`
24182418
- `'inline'`
24192419
- `lookupCompressed` - if `true`, looks for the same filename with the '.gz' suffix
2420-
for a precompressed version of the file to serve if the request supports content
2420+
for a pre-compressed version of the file to serve if the request supports content
24212421
encoding. Defaults to `false`.
24222422

24232423
- `directory` - generates a directory endpoint for serving static content from a directory.
@@ -3127,7 +3127,7 @@ error generation. **boom** provides an expressive interface to return HTTP error
31273127
returned via the [reply interface](#reply-interface) is converted to a **boom** object and defaults
31283128
to status code `500` if the error is not a **boom** object.
31293129

3130-
When the error is sent back to the client, the responses contians a JSON object with the
3130+
When the error is sent back to the client, the responses contains a JSON object with the
31313131
`statusCode`, `error`, and `message` keys.
31323132

31333133
```js
@@ -3283,7 +3283,7 @@ based on filename extension.:
32833283
- `'attachment'`
32843284
- `'inline'`
32853285
- `lookupCompressed` - if `true`, looks for the same filename with the '.gz' suffix for a
3286-
precompressed version of the file to serve if the request supports content encoding.
3286+
pre-compressed version of the file to serve if the request supports content encoding.
32873287
Defaults to `false`.
32883288

32893289
No return value.

0 commit comments

Comments
 (0)