Skip to content

Commit

Permalink
Fix: Call to undefined method Swlib\Saber\Request::removeInterceptor() (
Browse files Browse the repository at this point in the history
  • Loading branch information
ruesin authored May 10, 2020
1 parent afb022c commit 25f2dba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 25f2dba

Please sign in to comment.