Commit 5967667e authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Allow empty path assignment in mruby code

parent d044c585
...@@ -168,9 +168,6 @@ mrb_value request_set_path(mrb_state *mrb, mrb_value self) { ...@@ -168,9 +168,6 @@ mrb_value request_set_path(mrb_state *mrb, mrb_value self) {
const char *path; const char *path;
mrb_int pathlen; mrb_int pathlen;
mrb_get_args(mrb, "s", &path, &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)); downstream->set_request_path(std::string(path, pathlen));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment