Remove withQueryParameters on get request
This commit is contained in:
		
							parent
							
								
									11e6430d42
								
							
						
					
					
						commit
						c0b1345e90
					
				| @ -26,11 +26,10 @@ class DaemonFileRepository extends DaemonRepository | ||||
|         Assert::isInstanceOf($this->server, Server::class); | ||||
| 
 | ||||
|         try { | ||||
|             $response = $this->getHttpClient() | ||||
|                 ->withQueryParameters(['file' => $path]) | ||||
|                 ->get( | ||||
|                     sprintf('/api/servers/%s/files/contents', $this->server->uuid) | ||||
|                 ); | ||||
|             $response = $this->getHttpClient()->get( | ||||
|                 sprintf('/api/servers/%s/files/contents', $this->server->uuid), | ||||
|                 ['file' => $path] | ||||
|             ); | ||||
|         } catch (ClientException|TransferException $exception) { | ||||
|             throw new DaemonConnectionException($exception); | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 NeonSpectrum
						NeonSpectrum