You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The checking for disallowed directives of Trailer is conflicting
To Reproduce
Steps to reproduce the behavior:
For example, a header like Trailer: Authorization
The output will not contain the result where the Trailer is using Authorization which is a disallowed directive
Expected behavior
Should have the result, Trailer (Disallowed Directives)
Additional context
if 'Trailer' in headers:
trailer_h = headers['Trailer'].lower()
if any(elem in trailer_h for elem in l_trailer):
print_detail_r('[itrailer_h]', is_red=True)
if not args.brief:
matches_trailer = [x for x in l_trailer if x in trailer_h]
print_detail_l("[itrailer_d_s]")
print(', '.join(matches_trailer))
print_detail("[itrailer_d_r]")
i_cnt[0] += 1
The any check goes through l_trailer which contains capital letters in every element while it uses .lower() to convert the actual value of Trailer. Therefore, the condition was never met.
The text was updated successfully, but these errors were encountered:
Describe the bug
The checking for disallowed directives of Trailer is conflicting
To Reproduce
Steps to reproduce the behavior:
Trailer: Authorization
Expected behavior
Should have the result,
Trailer (Disallowed Directives)
Additional context
The
any
check goes throughl_trailer
which contains capital letters in every element while it uses.lower()
to convert the actual value ofTrailer
. Therefore, the condition was never met.The text was updated successfully, but these errors were encountered: