Skip to content

Commit c21f706

Browse files
committed
No need to execute the 500 error pipe here
1 parent f38d729 commit c21f706

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/WaterPipe/WaterPipe.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,7 @@ private function _executeRequest()
505505

506506
switch (Request::capture()->getMethod()) {
507507
case RequestMethod::UNKNOWN:
508-
if (isset($this->_errorsRegistry[500]))
509-
return $this->_executeAction($this->_errorsRegistry[500]);
510-
else throw new UnsupportedRequestMethodException();
508+
throw new UnsupportedRequestMethodException();
511509

512510
case RequestMethod::GET:
513511
$registry = $this->_getRequestRegistry;

0 commit comments

Comments
 (0)