Browse Source

support domains with no path with Test fetching

create a file `_` to serve a url like `http://example.com`
pull/2/merge 0.1.9
Aaron Parecki 4 years ago
parent
commit
c116af31ab
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/p3k/HTTP/Test.php

+ 2
- 0
src/p3k/HTTP/Test.php View File

@ -58,6 +58,8 @@ class Test implements Transport {
$parts = parse_url($url);
if($parts['path']) {
$parts['path'] = '/'.str_replace('/','_',substr($parts['path'],1));
if($parts['path'] == '/')
$parts['path'] = '/_';
$filepathurl = self::_build_url($parts);
}

Loading…
Cancel
Save