add testcase for decoding empty headers
fix decode error when processing headers with an empty value