Skip to content

Commit 930dd87

Browse files
committed
Fix docs for httpsOnly middleware
1 parent 5e83f19 commit 930dd87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,12 @@ in case you need it.
274274

275275
## HTTPS Only
276276

277-
You can enforce your server to use HTTPS only with the `httpOnly` middleware.
277+
You can enforce your server to use HTTPS only with the `httpsOnly` middleware.
278278

279279
```ts
280-
import { httpOnly } from "remix-hono/security";
280+
import { httpsOnly } from "remix-hono/security";
281281

282-
server.use("*", httpOnly());
282+
server.use("*", httpsOnly());
283283
```
284284

285285
## Trailing Slash

0 commit comments

Comments
 (0)