Created
July 6, 2010 14:28
-
-
Save ryu22e/465446 to your computer and use it in GitHub Desktop.
Net::Wassrで画像を投稿できるようにするパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145c145,151 | |
< my $res = $self->{ua}->post( $self->{apiurl} . $api, content => $args, ); | |
--- | |
> my $res; | |
> if ($args->{image}) { | |
> $res = $self->{ua}->post( $self->{apiurl} . $api, Content_Type => 'multipart/form-data', content => $args, ); | |
> } | |
> else { | |
> $res = $self->{ua}->post( $self->{apiurl} . $api, content => $args, ); | |
> } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
対象バージョンは0.02