aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_constraints.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_constraints.erl')
-rw-r--r--src/cowboy_constraints.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_constraints.erl b/src/cowboy_constraints.erl
index 9a379e1..9bd578e 100644
--- a/src/cowboy_constraints.erl
+++ b/src/cowboy_constraints.erl
@@ -52,7 +52,7 @@ apply_constraint(Value, F) when is_function(F) ->
%% Constraint functions.
int(Value) when is_binary(Value) ->
- try {true, list_to_integer(binary_to_list(Value))}
+ try {true, binary_to_integer(Value)}
catch _:_ -> false
end.