Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
attempt to fix $socket.get with non-ASCII characters
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0b5899aThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. I am having issues with this method. I am using get() from HTTP::Easy module.
With this version it just hangs after cookie get parsed. (The next line is supposed to be blank line - but it never get's there).
If I revert it, the process goes one step further.
Finished parsing headers.
But then this error occurs:
Invalid operation on binary string
in method uc at src/gen/CORE.setting:2280
in method dispatch:<.=> at src/gen/CORE.setting:1014
in block at lib/HTTP/Easy.pm6:93
in method reify at src/gen/CORE.setting:5591
in method reify at src/gen/CORE.setting:5492
in method gimme at src/gen/CORE.setting:5882
in method sink at src/gen/CORE.setting:6158
in method run at lib/HTTP/Easy.pm6:88
in method handle at lib/HTTP/Easy/PSGI.pm6:89
in block at http.pl:10
That line :93 in Easy.pm is trying to uppercase $key with value "Host"
This is already reported raku-community-modules/HTTP-Easy#6 and this commit is fix for that, but for some reason now it hangs.
If I use fix suggested there:
it works just fine (raku-community-modules/HTTP-Easy#7)