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); |         Assert::isInstanceOf($this->server, Server::class); | ||||||
| 
 | 
 | ||||||
|         try { |         try { | ||||||
|             $response = $this->getHttpClient() |             $response = $this->getHttpClient()->get( | ||||||
|                 ->withQueryParameters(['file' => $path]) |                 sprintf('/api/servers/%s/files/contents', $this->server->uuid), | ||||||
|                 ->get( |                 ['file' => $path] | ||||||
|                     sprintf('/api/servers/%s/files/contents', $this->server->uuid) |             ); | ||||||
|                 ); |  | ||||||
|         } catch (ClientException|TransferException $exception) { |         } catch (ClientException|TransferException $exception) { | ||||||
|             throw new DaemonConnectionException($exception); |             throw new DaemonConnectionException($exception); | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 NeonSpectrum
						NeonSpectrum