From 449ba05bb5e6c34423e3062cb81b239b9acb5df8 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Thu, 19 Oct 2017 09:51:33 +0200 Subject: [PATCH] Fix missing URI when giving bad verb --- oai2server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oai2server.php b/oai2server.php index b85c0e1..0c0aac0 100644 --- a/oai2server.php +++ b/oai2server.php @@ -38,12 +38,12 @@ class OAI2Server { private $token_valid = 86400; public function __construct($uri, $args, $identifyResponse, $callbacks, $config) { + $this->uri = $uri; $verbs = array('Identify', 'ListMetadataFormats', 'ListSets', 'ListIdentifiers', 'ListRecords', 'GetRecord'); if (empty($args['verb']) || !in_array($args['verb'], $verbs)) { $this->errors[] = new OAI2Exception('badVerb'); return; } - $this->uri = $uri; $this->verb = $args['verb']; unset($args['verb']); $this->args = $args;