From 8897c5763a794696cc58e1547ce7811b3b6800e0 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 15 Feb 2017 10:55:53 -0800 Subject: typo --- Zotlabs/Web/HTMLHeaders.php | 46 --------------------------------------------- Zotlabs/Web/HTTPHeaders.php | 46 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 Zotlabs/Web/HTMLHeaders.php create mode 100644 Zotlabs/Web/HTTPHeaders.php (limited to 'Zotlabs') diff --git a/Zotlabs/Web/HTMLHeaders.php b/Zotlabs/Web/HTMLHeaders.php deleted file mode 100644 index f9bc3043b..000000000 --- a/Zotlabs/Web/HTMLHeaders.php +++ /dev/null @@ -1,46 +0,0 @@ -in_progress['k']) { - $this->in_progress['v'] .= ' ' . ltrim($line); - continue; - } - } - else { - if($this->in_progress['k']) { - $this->parsed[] = [ $this->in_progress['k'] => $this->in_progress['v'] ]; - $this->in_progress = []; - } - - $this->in_progress['k'] = strtolower(substr($line,0,strpos($line,':'))); - $this->in_progress['v'] = ltrim(substr($line,strpos($line,':') + 1)); - } - - } - if($this->in_progress['k']) { - $this->parsed[] = [ $this->in_progress['k'] => $this->in_progress['v'] ]; - $this->in_progress = []; - } - } - } - - function fetch() { - return $this->parsed; - } -} - - - diff --git a/Zotlabs/Web/HTTPHeaders.php b/Zotlabs/Web/HTTPHeaders.php new file mode 100644 index 000000000..1e4c1bf84 --- /dev/null +++ b/Zotlabs/Web/HTTPHeaders.php @@ -0,0 +1,46 @@ +in_progress['k']) { + $this->in_progress['v'] .= ' ' . ltrim($line); + continue; + } + } + else { + if($this->in_progress['k']) { + $this->parsed[] = [ $this->in_progress['k'] => $this->in_progress['v'] ]; + $this->in_progress = []; + } + + $this->in_progress['k'] = strtolower(substr($line,0,strpos($line,':'))); + $this->in_progress['v'] = ltrim(substr($line,strpos($line,':') + 1)); + } + + } + if($this->in_progress['k']) { + $this->parsed[] = [ $this->in_progress['k'] => $this->in_progress['v'] ]; + $this->in_progress = []; + } + } + } + + function fetch() { + return $this->parsed; + } +} + + + -- cgit v1.2.3