Skip to content

Commit

Permalink
fix (HTTP): soft check for CRYSTAL_ENV in Onyx.listen
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfaust committed Feb 19, 2019
1 parent 2664bed commit 20cb940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onyx/http.cr
Expand Up @@ -62,7 +62,7 @@ class Onyx
HTTP::RequestID.new,
HTTP::Logger.new(
Onyx.logger,
query: ENV["CRYSTAL_ENV"] != "production"
query: ENV["CRYSTAL_ENV"]? != "production"
),
HTTP::CORS.new,
HTTP::Rescuers::Standard(Exception).new,
Expand Down

0 comments on commit 20cb940

Please sign in to comment.