Skip to content

Commit

Permalink
Separate one liner block in in_http plugin fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokikana committed Mar 20, 2019
1 parent 840c94b commit 1345395
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fluent/plugin/in_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,10 @@ def include_cors_allow_origin
return true
end
filtered_cors_allow_origins = @cors_allow_origins.select {|origin| origin != ""}
return filtered_cors_allow_origins.find {|origin| (start_str,end_str) = origin.split("*",2); @origin.start_with?(start_str) and @origin.end_with?(end_str)} != nil
return filtered_cors_allow_origins.find do |origin|
(start_str,end_str) = origin.split("*",2)
@origin.start_with?(start_str) and @origin.end_with?(end_str)
end != nil
end
end
end
Expand Down

0 comments on commit 1345395

Please sign in to comment.