about summary refs log tree commit homepage
path: root/lib/yahns/http_context.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-10-13 09:35:44 +0000
committerEric Wong <e@80x24.org>2014-10-13 09:35:44 +0000
commit09ec04ecf9354749108e68eb1f11e54591f20174 (patch)
tree5a926ccb120083e92fad57e7876ff42a3e3603d7 /lib/yahns/http_context.rb
parent6ab176f1c5313fb5244036f68de4dd04ea663b0e (diff)
downloadyahns-09ec04ecf9354749108e68eb1f11e54591f20174.tar.gz
This speeds up searching during startup and prevents accidentally
misloading different, potentially incompatible versions of yahns
code.
Diffstat (limited to 'lib/yahns/http_context.rb')
-rw-r--r--lib/yahns/http_context.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/http_context.rb b/lib/yahns/http_context.rb
index bd455bd..349e129 100644
--- a/lib/yahns/http_context.rb
+++ b/lib/yahns/http_context.rb
@@ -49,11 +49,11 @@ module Yahns::HttpContext # :nodoc:
     # input_buffering == false is handled in http_client
     return app if @client_max_body_size == nil
 
-    require 'yahns/cap_input'
+    require_relative 'cap_input'
     return app if @input_buffering == true
 
     # @input_buffering == false/:lazy
-    require 'yahns/max_body'
+    require_relative 'max_body'
     Yahns::MaxBody.new(app, @client_max_body_size)
   end