| Commit message (Collapse) | Author | Age | Files |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The `SERVER_NAME` variable does not contain the subdomain all the time,
and more importantly, it does not really contain the domain at all. For
instance:
# $_SERVER['SERVER_NAME'] === "sub.foo.app"
server_name sub.foo.app other.foo.app;
# $_SERVER['SERVER_NAME'] === "foo.app"
server_name foo.app bar.foo.app;
# $_SERVER['SERVER_NAME'] === "*.foo.app"
server_name *.foo.app foo.app;
So we fallback to `HTTP_HOST` as before.
|
|
|
|
|
|
|
|
|
| |
Previous commit transformed unused variables as query strings when
unrouting. However, the `unroute` method also receives protected
variables (such as `_domain`, `_query` and also `_this` for the kit in
case of a dispatcher etc.).
This commit filters unused variables to remove protected variables.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We can use `@` to specify a subdomain and a URI (for instance
`sub@/uri/`) in the same `$uri`.
Previously, we decoded URI before splitting the subdomain and the URI.
Consequently, if a URI contains `%40`, being `@`, everything at the left
of `%40` will be considered as a subdomain, and therefore, it is highly
likely to fail the routing.
Now we decode URI after having splitted the subdomain and the URI.
|
|
|
|
|
| |
See the following list:
http://www.iana.org/assignments/http-methods/http-methods.xhtml.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since the DAV family (WebDAV, CalDAV and CardDAV) is an extension to
HTTP, the `Hoa\Router\Http\Dav` class simply extends `Hoa\Router\Http`
and defines new methods:
* PROPFIND,
* PROPPATCH,
* MKCOL,
* COPY,
* MOVE,
* LOCK,
* UNLOCK.
|
| |
|
|
|