Fix undefined var in HTTP headers extraction