diff --git a/Changelog.md b/Changelog.md index 33ba6df..a7e5ea6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,6 @@ +# 1.1.1 +The freepad version has been added as a header to the response + # 1.1.0 Implemented a rate-limiting system, quite primitive and basic implementation on my part since it's looking at all requests not just the POST requests, this can be bad news if someone is using the service a ton and won't truly protect from floods as it's ip-based but should offer a level of security better than none. diff --git a/Dockerfile b/Dockerfile index 125fcf4..a9a55df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine -LABEL version="1.1.0" +LABEL version="1.1.1" # Copy the distribution files COPY ./dist /app diff --git a/lib/controllers/controllers_header.go b/lib/controllers/controllers_header.go index 4869417..18e032d 100644 --- a/lib/controllers/controllers_header.go +++ b/lib/controllers/controllers_header.go @@ -6,7 +6,7 @@ func ApplyHeaders(router *gin.Engine) { router.Use(func(ctx *gin.Context) { // Apply the header - ctx.Header("FreePad-Version", "1.1.0") + ctx.Header("FreePad-Version", "1.1.1") // Move on ctx.Next()