Merge pull request #431 from matheusheiden/master

Set HTTP method before initializing InputHandler
This commit is contained in:
Simon Sessingø
2018-11-25 00:27:30 +01:00
committed by GitHub

View File

@@ -84,7 +84,8 @@ class Request
// Check if special IIS header exist, otherwise use default.
$this->setUrl(new Url($this->getHeader('unencoded-url', $this->getHeader('request-uri'))));
$this->method = strtolower($this->getHeader('request-method'));
$this->inputHandler = new InputHandler($this);
$this->method = strtolower($this->inputHandler->value('_method', $this->getHeader('request-method')));
}
@@ -425,4 +426,4 @@ class Request
return $this->data[$name] ?? null;
}
}
}