We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ebb8fec + aada5ca commit c3fd456Copy full SHA for c3fd456
api.php
@@ -2638,7 +2638,8 @@ public function executeCommand() {
2638
if ($this->settings['origin']) {
2639
$this->allowOrigin($this->settings['origin'],$this->settings['allow_origin']);
2640
}
2641
- if (!$this->settings['request']) {
+ $currentScriptFilename = basename(__FILE__);
2642
+ if (!$this->settings['request'] || $this->settings['request'] == $currentScriptFilename) {
2643
$this->swagger($this->settings);
2644
} else {
2645
$parameters = $this->getParameters($this->settings);
0 commit comments