From 0c44c1460df797e68fbd76affa5da3c5deb2b2a4 Mon Sep 17 00:00:00 2001 From: Fenny Date: Wed, 12 Feb 2020 07:04:57 +0100 Subject: [PATCH] Clean root --- .gitpod.yml => .github/.gitpod.yml | 0 request.go | 9 ++++++--- 2 files changed, 6 insertions(+), 3 deletions(-) rename .gitpod.yml => .github/.gitpod.yml (100%) diff --git a/.gitpod.yml b/.github/.gitpod.yml similarity index 100% rename from .gitpod.yml rename to .github/.gitpod.yml diff --git a/request.go b/request.go index 49cc5fc5..a93c7cc7 100644 --- a/request.go +++ b/request.go @@ -241,7 +241,7 @@ func (ctx *Ctx) FormValue(key string) string { // Fresh : https://fiber.wiki/context#fresh func (ctx *Ctx) Fresh() bool { - return true + return false } // Get : https://fiber.wiki/context#get @@ -361,7 +361,10 @@ func (ctx *Ctx) Query(key string) string { // Range : https://fiber.wiki/context#range func (ctx *Ctx) Range() { - + // https://expressjs.com/en/api.html#req.range + // https://github.com/jshttp/range-parser/blob/master/index.js + // r := ctx.Fasthttp.Request.Header.Peek(fasthttp.HeaderRange) + // *magic* } // Route : https://fiber.wiki/context#route @@ -386,7 +389,7 @@ func (ctx *Ctx) SignedCookies() { // Stale : https://fiber.wiki/context#stale func (ctx *Ctx) Stale() bool { - return true + return !ctx.Fresh() } // Subdomains : https://fiber.wiki/context#subdomains