Skip to content

Commit

Permalink
Use quotes to preserve decimal point on MIME-Version
Browse files Browse the repository at this point in the history
Thanks, ANDK!
  • Loading branch information
rwstauner committed Jul 26, 2013
1 parent bc92cf7 commit 5c16692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Server/Controller/Login/PAUSE.pm
Expand Up @@ -47,7 +47,7 @@ sub index : Path {
To => $author->{email}->[0],
From => 'noreply@metacpan.org',
Subject => "Connect MetaCPAN with your PAUSE account",
'MIME-Version' => 1.0,
'MIME-Version' => '1.0',
],
body => $self->email_body($author->name, $uri),
);
Expand Down
3 changes: 3 additions & 0 deletions t/server/controller/login/pause.t
Expand Up @@ -40,6 +40,9 @@ sub test_pause_auth {

ok !is_utf8($email->get_body), 'body is octets (no wide characters)';

# Thanks ANDK!
is $email->get_header('MIME-Version'), '1.0', 'valid MIME-Version';

is $email->get_header('to'), "\L$pause_id\@cpan.org", 'To: cpan address';
like $email->get_header('subject'), qr/\bmetacpan\s.+\sPAUSE\b/i,
'subject mentions metacpan and pause';
Expand Down

0 comments on commit 5c16692

Please sign in to comment.