Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/response/AphrontFileResponse.php
| Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | if (strlen($this->getDownload())) { | ||||
| 'Content-Disposition', | 'Content-Disposition', | ||||
| 'attachment; filename='.$filename, | 'attachment; filename='.$filename, | ||||
| ); | ); | ||||
| } | } | ||||
| if ($this->allowOrigins) { | if ($this->allowOrigins) { | ||||
| $headers[] = array( | $headers[] = array( | ||||
| 'Access-Control-Allow-Origin', | 'Access-Control-Allow-Origin', | ||||
| implode(',', $this->allowOrigins)); | implode(',', $this->allowOrigins), | ||||
| ); | |||||
| } | } | ||||
| $headers = array_merge(parent::getHeaders(), $headers); | $headers = array_merge(parent::getHeaders(), $headers); | ||||
| return $headers; | return $headers; | ||||
| } | } | ||||
| } | } | ||||