Skip to content

Commit c023cb2

Browse files
committed
make set-cookie header check case insensitive
1 parent 551327b commit c023cb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/msftidy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def check_lines
467467
end
468468

469469
# do not read Set-Cookie header
470-
if ln =~ /\[['"]Set-Cookie['"]\]/
470+
if ln =~ /\[['"]Set-Cookie['"]\]/i
471471
warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx)
472472
end
473473
}

0 commit comments

Comments
 (0)