diff --git a/src/Handshake/NegotiatorInterface.php b/src/Handshake/NegotiatorInterface.php index 662ae95..c152eca 100644 --- a/src/Handshake/NegotiatorInterface.php +++ b/src/Handshake/NegotiatorInterface.php @@ -41,7 +41,7 @@ interface NegotiatorInterface { * @param boolean $enable * @todo Consider extending this interface and moving this there. * The spec does says the server can fail for this reason, but - it is not a requirement. This is an implementation detail. + * it is not a requirement. This is an implementation detail. */ function setStrictSubProtocolCheck($enable); } diff --git a/src/Handshake/ServerNegotiator.php b/src/Handshake/ServerNegotiator.php index f1e0ae0..6568684 100644 --- a/src/Handshake/ServerNegotiator.php +++ b/src/Handshake/ServerNegotiator.php @@ -40,7 +40,7 @@ class ServerNegotiator implements NegotiatorInterface { */ public function handshake(RequestInterface $request) { if (true !== $this->verifier->verifyMethod($request->getMethod())) { - return new Response(405); + return new Response(405, ['Allow' => 'GET']); } if (true !== $this->verifier->verifyHTTPVersion($request->getProtocolVersion())) {