From e9679d251cea59c3948bcaa9c651f47338783384 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 14 Aug 2017 22:40:29 -0700 Subject: more work on activitypub httpsignature verification --- Zotlabs/Web/HTTPHeaders.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Zotlabs/Web/HTTPHeaders.php') 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; + } + + } -- cgit v1.2.3