nghttpx: Allow empty path assignment in mruby code

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-04 01:00:27 +09:00
parent d044c58558
commit 5967667e9e
1 changed files with 0 additions and 3 deletions

View File

@ -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));