diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-09-01 21:45:06 +0200 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-09-06 19:30:26 +0200 |
commit | 451314eb48c7d922264adc6eada8a0273b12344c (patch) | |
tree | fddc1a6d7a92728d0dfdcbb676f113a09325b1c2 /application/LinkDB.php | |
parent | f5d6b19b73cd026cb1d937aab16d48b43e412c77 (diff) | |
download | Shaarli-451314eb48c7d922264adc6eada8a0273b12344c.tar.gz Shaarli-451314eb48c7d922264adc6eada8a0273b12344c.tar.zst Shaarli-451314eb48c7d922264adc6eada8a0273b12344c.zip |
HTTP: move utils to a proper file, add tests
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>
Diffstat (limited to 'application/LinkDB.php')
0 files changed, 0 insertions, 0 deletions