(f filters.FilterContext)
| 751 | } |
| 752 | |
| 753 | func getResponseHeader(f filters.FilterContext) func(*lua.LState) int { |
| 754 | return func(s *lua.LState) int { |
| 755 | hdr := s.ToString(-1) |
| 756 | res := f.Response().Header.Get(hdr) |
| 757 | // TODO(sszuecs): https://github.com/zalando/skipper/issues/1487 |
| 758 | // if res != "" { |
| 759 | // s.Push(lua.LString(res)) |
| 760 | // return 1 |
| 761 | // } |
| 762 | // return 0 |
| 763 | s.Push(lua.LString(res)) |
| 764 | return 1 |
| 765 | } |
| 766 | } |
| 767 | |
| 768 | func setResponseHeader(f filters.FilterContext) func(*lua.LState) int { |
| 769 | return func(s *lua.LState) int { |
no test coverage detected
searching dependent graphs…