Przeglądaj źródła

added useragent and connect_timeout to request options function

CauseFX 3 lat temu
rodzic
commit
1b9abdb48e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      api/functions/organizr-functions.php

+ 1 - 1
api/functions/organizr-functions.php

@@ -817,7 +817,7 @@ trait OrganizrFunctions
 				$options = array_merge($options, $extras);
 			}
 		}
-		return $options;
+		return array_merge($options, array('useragent' => 'organizr/' . $this->version, 'connect_timeout' => 5));
 	}
 
 	public function showHTML(string $title = 'Organizr Alert', string $notice = '', bool $autoClose = false)