Fix missing URI when giving bad verb
This commit is contained in:
parent
b6b91c9bf7
commit
449ba05bb5
|
@ -38,12 +38,12 @@ class OAI2Server {
|
||||||
private $token_valid = 86400;
|
private $token_valid = 86400;
|
||||||
|
|
||||||
public function __construct($uri, $args, $identifyResponse, $callbacks, $config) {
|
public function __construct($uri, $args, $identifyResponse, $callbacks, $config) {
|
||||||
|
$this->uri = $uri;
|
||||||
$verbs = array('Identify', 'ListMetadataFormats', 'ListSets', 'ListIdentifiers', 'ListRecords', 'GetRecord');
|
$verbs = array('Identify', 'ListMetadataFormats', 'ListSets', 'ListIdentifiers', 'ListRecords', 'GetRecord');
|
||||||
if (empty($args['verb']) || !in_array($args['verb'], $verbs)) {
|
if (empty($args['verb']) || !in_array($args['verb'], $verbs)) {
|
||||||
$this->errors[] = new OAI2Exception('badVerb');
|
$this->errors[] = new OAI2Exception('badVerb');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->uri = $uri;
|
|
||||||
$this->verb = $args['verb'];
|
$this->verb = $args['verb'];
|
||||||
unset($args['verb']);
|
unset($args['verb']);
|
||||||
$this->args = $args;
|
$this->args = $args;
|
||||||
|
|
Loading…
Reference in New Issue