raku-community-modules / LWP-Simple

LWP::Simple quick & dirty implementation for Rakudo
http://www.streppone.it/cosimo/blog/tag/LWP::Simple/
Artistic License 2.0
8 stars 9 forks source link

HTML header names with mixed case fix #24

Closed wbiker closed 6 years ago

wbiker commented 6 years ago

So, second try ^^ This time I do not change the header hash itself for compatibility. Instead I create a second hash where it is used to read out information like location or content-type or charset respectively.

This way, old code will work except the code expect to get the buffer back instead of the content because of the bug.

I use a lowercase hash instead of the Title-Case suggestion by zoffix, because that would also change the hash keys and would cause compatibility troubles.

zoffixznet commented 6 years ago

👍 Thanks!