Changeset 13941

Show
Ignore:
Timestamp:
06/14/08 17:35:49 (5 years ago)
Author:
tokuhirom
Message:

r3725@gp (orig r375): tokuhiro | 2007-07-16 21:28:41 +0900
released S::P::Captcha 0.02.


Location:
lang/perl/Sledge-Plugin-Captcha/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Sledge-Plugin-Captcha/trunk/Changes

    r13939 r13941  
    11Revision history for Sledge-Plugin-Captcha 
     2 
     30.0.2  Thu Mar 15 10:52:08 JST 2007 
     4       oops. fixed invalid Content-Type header. 
     5       jpeg => image/jpeg. 
    26 
    370.0.1  Fri Jan  5 10:46:27 2007 
  • lang/perl/Sledge-Plugin-Captcha/trunk/lib/Sledge/Plugin/Captcha.pm

    r13940 r13941  
    33use warnings; 
    44use Carp; 
    5 our $VERSION = 0.01; 
     5our $VERSION = 0.02; 
    66use GD::SecurityImage; 
    77 
     
    4545            = $captcha->out( %{ $self->create_config->captcha->{out} } ); 
    4646        $self->session->param( $self->create_config->captcha->{session_name} => $captcha_string ); 
    47         $self->show_image( $image => $mime_type ); 
     47        $self->show_image( $image => "image/$mime_type" ); 
    4848    }; 
    4949} 
  • lang/perl/Sledge-Plugin-Captcha/trunk/t/01.base.t

    r13940 r13941  
    2121    my $page = t::TestPages->new; 
    2222    $page->dispatch('foo'); 
    23     like($page->output, qr{Content-Type: jpeg}, 'image output'); 
     23    like($page->output, qr{Content-Type: image/jpeg}, 'image output'); 
    2424    like($page->output, qr{JFIF}, 'image'); 
    2525};