Commit 6fd1092d authored by George Anderson's avatar George Anderson
Browse files

Issue #3282771: CDN host should be available for Azurite emulator.

parent 6c38307f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -105,9 +105,9 @@ class AzBlobRestProxyAlter extends BlobRestProxy {
    // Get primary uri.
    $uri = $this->getPsrPrimaryUri();
    // Make sure local emulator is not turned on.
    if ($uri && !$this->config['az_blob_local_emulator']) {
    if ($uri) {
      // Set scheme/protocol.
      if (!empty($this->config['az_blob_protocol'])) {
      if (!empty($this->config['az_blob_protocol']) && !$this->config['az_blob_local_emulator']) {
        $uri = $uri->withScheme($this->config['az_blob_protocol']);
      }
      // Set host if CDN hostname is configured.
+0 −5
Original line number Diff line number Diff line
@@ -98,11 +98,6 @@ class AzBlobFsSettingsForm extends ConfigFormBase {
      '#field_prefix' => $protocol . '://',
      '#size' => 15,
      '#default_value' => $config->get('az_blob_cdn_host_name'),
      '#states' => [
        'visible' => [
          ':input[name="az_blob_local_emulator"]' => ['checked' => FALSE],
        ],
      ],
    ];

    $form['az_blob_local_emulator'] = [