Browse Source

don't actually munge test URLs

pull/1/head 0.1.5
Aaron Parecki 7 years ago
parent
commit
3740fe135e
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/p3k/HTTP/Test.php

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

@ -57,10 +57,10 @@ class Test implements Transport {
$parts = parse_url($url);
if($parts['path']) {
$parts['path'] = '/'.str_replace('/','_',substr($parts['path'],1));
$url = self::_build_url($parts);
$filepathurl = self::_build_url($parts);
}
$filename = $this->_testDataPath.preg_replace('/https?:\/\//', '', $url);
$filename = $this->_testDataPath.preg_replace('/https?:\/\//', '', $filepathurl);
if(!file_exists($filename)) {
$filename = $this->_testDataPath.'404.response.txt';
}

Loading…
Cancel
Save