diff --git a/README.md b/README.md index 4e9cffd..a6cea35 100644 --- a/README.md +++ b/README.md @@ -858,7 +858,7 @@ public function setCookie(array $options): self public function unsetCookie(string $name, string $path = '', string $domain = ''): self public function withInterceptor(string $name, array $interceptor) public function withAddedInterceptor(string $name, array $functions): self -public function removeInterceptor(string $name): self +public function withoutInterceptor(string $name): self public function callInterceptor(string $name, $arguments) public function getSpecialMark(string $name = 'default') public function withSpecialMark($mark, string $name = 'default'): self @@ -910,7 +910,7 @@ public function withMaxConcurrency(int $num = -1): self public function recv(): Swlib\Saber\ResponseMap public function withInterceptor(string $name, array $interceptor) public function withAddedInterceptor(string $name, array $functions): self -public function removeInterceptor(string $name): self +public function withoutInterceptor(string $name): self public function callInterceptor(string $name, $arguments) ``` #### Swlib\Saber\ResponseMap diff --git a/src/Request.php b/src/Request.php index d9382c2..f452b09 100755 --- a/src/Request.php +++ b/src/Request.php @@ -743,7 +743,7 @@ public function recv() ->withBody(null) ->withHeader('Host', $this->uri->getHost()) ->withHeader('Referer', $current_uri) - ->removeInterceptor('request'); + ->withoutInterceptor('request'); /** * Redirect-interceptors have permission to release or intercept redirects,