Closed xj524598 closed 1 year ago
What this code does is it adds a Connection: close
header to the request when the max connection duration has been reached. After the request has been send it removes this header again to keep the request object the same as how the user's code made it.
Keep in mind that the req.Write
line is the one that actually writes the header.
fasthttp version: 1.45.0
all is in picture