Skip to content

Commit

Permalink
deleting hash contents is :delete rather than .delete
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Jul 8, 2017
1 parent deb0909 commit 7995464
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Email/MIME.pm6
Expand Up @@ -176,7 +176,7 @@ method filename-set($filename) {
if $filename {
$params<filename> = $filename;
} else {
$params<filename>.delete;
$params<filename>:delete;
}

# rewrite header
Expand Down Expand Up @@ -252,7 +252,7 @@ method parts-set(@parts) {
$ct<type> = $thispart_ct<type>;
$ct<subtype> = $thispart_ct<subtype>;
self.encoding-set($part.header('Content-Transfer-Encoding'));
$ct<attributes><boundary>.delete;
$ct<attributes><boundary>:delete;
}

self!compose-content-type($ct);
Expand Down Expand Up @@ -281,7 +281,7 @@ method boundary-set($data) {
if $data {
$ct-hash<attributes><boundary> = $data;
} else {
$ct-hash<attributes><boundary>.delete;
$ct-hash<attributes><boundary>:delete;
}
self!compose-content-type($ct-hash);

Expand All @@ -308,7 +308,7 @@ method charset-set($data) {
if $data {
$ct-hash<attributes><charset> = $data;
} else {
$ct-hash<attributes><charset>.delete;
$ct-hash<attributes><charset>:delete;
}
self!compose-content-type($ct-hash);
return $data;
Expand All @@ -318,7 +318,7 @@ method name-set($data) {
if $data {
$ct-hash<attributes><name> = $data;
} else {
$ct-hash<attributes><name>.delete;
$ct-hash<attributes><name>:delete;
}
self!compose-content-type($ct-hash);
return $data;
Expand All @@ -328,7 +328,7 @@ method format-set($data) {
if $data {
$ct-hash<attributes><format> = $data;
} else {
$ct-hash<attributes><format>.delete;
$ct-hash<attributes><format>:delete;
}
self!compose-content-type($ct-hash);
return $data;
Expand Down

0 comments on commit 7995464

Please sign in to comment.