The __pairs metamethod was introduced in 5.2, so instead of using pairs() on http.headers values, use its :each() method — which is what the __pairs metamethod calls anyway.
The __pairs metamethod was introduced in 5.2, so instead of using pairs() on http.headers values, use its :each() method — which is what the __pairs metamethod calls anyway.