Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | HTTP: move server URL functions to `HttpUtils.php` | VirtualTam | 2015-09-14 | 1 | -0/+80 |
| | | | | | | | | | | | | | Relates to #333 Modifications: - refactor server URL utility functions - do not access global `$_SERVER` variables - add test coverage - improve readability - apply coding conventions Signed-off-by: VirtualTam <virtualtam@flibidi.net> | ||||
* | HTTP: move utils to a proper file, add tests | VirtualTam | 2015-09-06 | 1 | -0/+52 |
Relates to #333 Modifications: - move HTTP utils to 'application/HttpUtils.php' - simplify logic - replace 'http_parse_headers_shaarli' by built-in 'get_headers()' - remove superfluous '$status' parameter (provided by the HTTP headers) - apply coding conventions - add test coverage (unitary only) Signed-off-by: VirtualTam <virtualtam@flibidi.net> |