diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-20 02:20:19 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-20 02:20:19 -0800 |
commit | ed33b9c0d060806b41e952a50e0ab65a0f5fe21a (patch) | |
tree | d21ffcdb875286e05bcd7ea66bd6c431d6892504 | |
parent | e0ad4353f0c0f8ae27301df3e694384f687a4264 (diff) | |
download | rainbows-ed33b9c0d060806b41e952a50e0ab65a0f5fe21a.tar.gz |
It's the only place we ever use it
-rw-r--r-- | lib/rainbows/const.rb | 2 | ||||
-rw-r--r-- | lib/rainbows/ev_core.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/const.rb b/lib/rainbows/const.rb index 04ed92d..33df05d 100644 --- a/lib/rainbows/const.rb +++ b/lib/rainbows/const.rb @@ -20,8 +20,6 @@ module Rainbows::Const # of the official spec, but for now it is "hack.io" CLIENT_IO = "hack.io".freeze - ERROR_413_RESPONSE = "HTTP/1.1 413 Request Entity Too Large\r\n\r\n" - RACK_INPUT = Unicorn::HttpRequest::RACK_INPUT REMOTE_ADDR = Unicorn::HttpRequest::REMOTE_ADDR end diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index d958b18..d218553 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -115,8 +115,10 @@ module Rainbows::EvCore handle_error(e) end + ERROR_413_RESPONSE = "HTTP/1.1 413 Request Entity Too Large\r\n\r\n" + def err_413(msg) - write(Rainbows::Const::ERROR_413_RESPONSE) + write(ERROR_413_RESPONSE) quit # zip back up the stack raise IOError, msg, [] |