Просмотр исходного кода

made Options and Method parameters optional for HttpRequest command

tags/0.1.5
Robin Thoni 4 лет назад
Родитель
Сommit
301f68cff4
Подписано: Robin THONI <robin@rthoni.com> Идентификатор GPG ключа: 4E09DEF46B99E61E
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      app/Http/Business/Commands/HttpRequestCommand.php

+ 2
- 2
app/Http/Business/Commands/HttpRequestCommand.php Просмотреть файл

@@ -22,8 +22,8 @@ class HttpRequestCommand extends AbstractCommand
22 22
     {
23 23
         $data = $this->_command->getData();
24 24
         $url = $data["Url"];
25
-        $method = $data["Method"];
26
-        $options = $data["Options"];
25
+        $method = isset($data["Method"]) ? $data["Method"] : "POST";
26
+        $options = isset($data["Options"]) ? $data["Options"] : array();
27 27
 
28 28
         $client = new Client();
29 29
 

Загрузка…
Отмена
Сохранить