Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Tiny warning fix. #329

Closed
wants to merge 1 commit into from

2 participants

@augensalat

After my last Mojolicious update I found this warning in my logs:

Argument "" isn't numeric in smart match

This patch should fix that.

@kraih kraih closed this in 9ec98cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 16, 2012
  1. @augensalat

    Sort out a warning issue.

    augensalat authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Mojo/Message.pm
View
2  lib/Mojo/Message.pm
@@ -219,7 +219,7 @@ sub is_dynamic { shift->content->is_dynamic }
sub is_finished { (shift->{state} || '') eq 'finished' }
-sub is_limit_exceeded { ((shift->error)[1] || '') ~~ [413, 431] }
+sub is_limit_exceeded { ((shift->error)[1] || 0) ~~ [413, 431] }
sub is_multipart { shift->content->is_multipart }
Something went wrong with that request. Please try again.