1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-22 23:43:39 +00:00

Merge pull request #294 from da-z/patch-1

Fixes typo
This commit is contained in:
Fenny 2020-04-24 19:10:07 +02:00 committed by GitHub
commit 50aa3a91dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
ctx.go
View File

@ -768,7 +768,7 @@ func (ctx *Ctx) Set(key string, val string) {
ctx.Fasthttp.Response.Header.Set(key, val)
}
// Subdomains returns a string slive of subdomains in the domain name of the request.
// Subdomains returns a string slice of subdomains in the domain name of the request.
// The subdomain offset, which defaults to 2, is used for determining the beginning of the subdomain segments.
func (ctx *Ctx) Subdomains(offset ...int) []string {
o := 2