From 5967667e9e190cd3dbcd172f6e4023a76b4d6e80 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 4 Sep 2015 01:00:27 +0900 Subject: [PATCH] nghttpx: Allow empty path assignment in mruby code --- src/shrpx_mruby_module_request.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/shrpx_mruby_module_request.cc b/src/shrpx_mruby_module_request.cc index 8d7442b1..e1fb1edb 100644 --- a/src/shrpx_mruby_module_request.cc +++ b/src/shrpx_mruby_module_request.cc @@ -168,9 +168,6 @@ mrb_value request_set_path(mrb_state *mrb, mrb_value self) { const char *path; mrb_int pathlen; mrb_get_args(mrb, "s", &path, &pathlen); - if (pathlen == 0) { - mrb_raise(mrb, E_RUNTIME_ERROR, "path must not be empty string"); - } downstream->set_request_path(std::string(path, pathlen));