allow channel address to be changed

This commit is contained in:
zotlabs
2017-08-04 19:02:41 -07:00
parent 06a211704f
commit 3aa22c29fd
4 changed files with 195 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ class Ap_probe extends \Zotlabs\Web\Controller {
$redirects = 0;
$x = z_fetch_url($addr,true,$redirects, [ 'headers' => [ $headers ]]);
if($x['success'])
$o .= '<pre>' . $x['header'] . '</pre>' . EOL;
$o .= '<pre>' . str_replace(['\\n','\\'],["\n",''],jindent($x['body'])) . '</pre>';
}
return $o;