Permalink
Browse files

remove constant declaration modifier to get around pre-compilation pr…

…oblems
  • Loading branch information...
1 parent f0493c0 commit a6cd3bb722f693a04382db8fd84cfe4bc8beda68 @ronaldxs ronaldxs committed Aug 19, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/LWP/Simple.pm
View
5 lib/LWP/Simple.pm
@@ -14,8 +14,9 @@ enum RequestType <GET POST>;
has Str $.default_encoding = 'utf-8';
our $.class_default_encoding = 'utf-8';
-my Buf constant $crlf = Buf.new(13, 10);
-my Buf constant $http_header_end_marker = Buf.new(13, 10, 13, 10);
+# these were intended to be constant but that hit pre-compilation issue
+my Buf $crlf = Buf.new(13, 10);
+my Buf $http_header_end_marker = Buf.new(13, 10, 13, 10);
method base64encode ($user, $pass) {
my MIME::Base64 $mime .= new();

0 comments on commit a6cd3bb

Please sign in to comment.