Permalink
Browse files

catch using simple string instead of array ref for id param, so one d…

…oesn't have to do []; this broke recently when adding code allowing the use of POST for large requests
  • Loading branch information...
1 parent ed246bc commit be285e28341f265cb628ea0d8922499bf443a778 Chris Fields committed Oct 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Bio/Tools/EUtilities/EUtilParameters.pm
@@ -371,7 +371,7 @@ sub request_mode {
if (scalar(@{$MODE{$eutil}{mode}}) > 1) { # allows both GET and POST
my ($id, $term) = ($self->id || [], $self->term || '');
- if (scalar(@$id) > 200 || CORE::length($term) > 300) {
+ if (ref $id eq 'ARRAY' && scalar(@$id) > 200 || CORE::length($term) > 300) {
return 'POST'
}
}

0 comments on commit be285e2

Please sign in to comment.