File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/IPub/JsonAPIClient/Clients Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,16 @@ public function addAuthorization(string $token) : void
169169 $ this ->addHeader ('Authorization ' , 'Bearer ' . $ token );
170170 }
171171
172+ /**
173+ * {@inheritdoc}
174+ */
175+ public function removeAuthorization () : void
176+ {
177+ if (isset ($ this ->headers ['Authorization ' ])) {
178+ unset($ this ->headers ['Authorization ' ]);
179+ }
180+ }
181+
172182 /**
173183 * {@inheritdoc}
174184 */
Original file line number Diff line number Diff line change @@ -104,6 +104,11 @@ public function addApiKey(string $key) : void;
104104 */
105105 public function addAuthorization (string $ token ) : void ;
106106
107+ /**
108+ * @return void
109+ */
110+ public function removeAuthorization () : void ;
111+
107112 /**
108113 * @param string $header
109114 * @param string $value
You can’t perform that action at this time.
0 commit comments