-
-
Notifications
You must be signed in to change notification settings - Fork 624
Adding simple if not to yield exception. #337
Copy link
Copy link
Open
Description
lua-resty-http/lib/resty/http.lua
Line 797 in 1833103
| local ok, connection = pcall(str_lower, res_headers["Connection"]) |
There are many cases where the header may be nil and it's yielding with un-needed exception.
Should add a simple if before accessing the header.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels