Skip to content

Commit

Permalink
better build_boundary description
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 16, 2012
1 parent 9210a0a commit c985d81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojo/Content/MultiPart.pm
Expand Up @@ -180,17 +180,17 @@ sub _read {
until (($self->{multi_state} //= 'multipart_preamble') eq 'finished') {

# Preamble
if (($self->{multi_state} // '') eq 'multipart_preamble') {
if ($self->{multi_state} eq 'multipart_preamble') {
last unless $self->_parse_multipart_preamble($boundary);
}

# Boundary
elsif (($self->{multi_state} // '') eq 'multipart_boundary') {
elsif ($self->{multi_state} eq 'multipart_boundary') {
last unless $self->_parse_multipart_boundary($boundary);
}

# Body
elsif (($self->{multi_state} // '') eq 'multipart_body') {
elsif ($self->{multi_state} eq 'multipart_body') {
last unless $self->_parse_multipart_body($boundary);
}
}
Expand Down Expand Up @@ -280,7 +280,7 @@ Content size in bytes.
my $boundary = $multi->build_boundary;
Generate a suitable boundary for content.
Generate a suitable boundary for content and add it to C<Content-Type> header.
=head2 C<clone>
Expand Down

0 comments on commit c985d81

Please sign in to comment.