aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/HTTPHeaders.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Web/HTTPHeaders.php')
-rw-r--r--Zotlabs/Web/HTTPHeaders.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zotlabs/Web/HTTPHeaders.php b/Zotlabs/Web/HTTPHeaders.php
index 1e4c1bf84..4be51a8f3 100644
--- a/Zotlabs/Web/HTTPHeaders.php
+++ b/Zotlabs/Web/HTTPHeaders.php
@@ -40,6 +40,20 @@ class HTTPHeaders {
function fetch() {
return $this->parsed;
}
+
+ function fetcharr() {
+ $ret = [];
+ if($this->parsed) {
+ foreach($this->parsed as $x) {
+ foreach($x as $y => $z) {
+ $ret[$y] = $z;
+ }
+ }
+ }
+ return $ret;
+ }
+
+
}