Skip to content
#

web-framework

Here are 721 public repositories matching this topic...

vapor
DaveTCode
DaveTCode commented Apr 19, 2021

Is your feature request related to a problem? Please describe.
As per https://discordapp.com/channels/431917998102675485/435928766812913664/833695763296813107 http apis which return content with Content-Type plain/text hit an Abort.httpDecoder error: Unsupported Media Type when decoding.

e.g.

return req.client.get(address).flatMapThrowing { res in
    try res.content.decode(UInt8.
aschiffmann
aschiffmann commented Apr 21, 2021

Checklist

  • Dependencies installed
  • No typos
  • Searched existing issues and docs

Issue Description

When using the RateLimiter Middleware with a rate between 0 and 1 all events will be rejected instead of applying the specified rate. E.g.: e.Use(middleware.RateLimiter(middleware.NewRateLimiterMemoryStore(0.5)))

I am not saying that it is a common use case to have

yew
fq-selbach
fq-selbach commented May 25, 2021

Actual behavior (the bug)
When a cookie is defined without path, e.g. ctx.cookie(new Cookie("my-cookie", "hello")) the method ctx.removeCookie("my-cookie") does not work.

Expected behavior
If the cookie is set without path ctx.removeCookie should remove the same cookie or the method ctx.removeCookie should force the path parameter.

To Reproduce

  • Create a cookie:

Improve this page

Add a description, image, and links to the web-framework topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the web-framework topic, visit your repo's landing page and select "manage topics."

Learn more