The Siege Can Continue
A wise internet spaceship pirate once wrote: “Whining gets you stuff. That’s why humans are at the top of the food chain.”. My Whining got me a fix that put an end to segfaults on long running scripts that react to http requests.
So I continued to add missing bits to my golfed httpd and found another good use for term:<>
.
constant term:<HTTP-HEADER-404> = "HTTP/1.1 404 Not Found", "Content-Type: text/plain; charset=UTF-8", "Content-Encoding: UTF-8", "";
Without term:<>
the compiler would think I wanted to substract 400 from a http header.
If you got some time to spare please write a whiny blog post about a crash that is bugging you – works like a charm.
Categories: Perl6
Comments (0)
Trackbacks (1)
Leave a comment
Trackback
-
September 18, 2017 at 23:402017.38 Color Me Booked | Weekly changes in and around Perl 6