Skip to content

Commit

Permalink
up fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Mar 25, 2020
1 parent 6080319 commit 33d9640
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AnnotationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,18 @@ protected function __annotationHook(string $actionName)
break;
}
case 'HEADER':{
$value = $this->request()->getHeader(strtolower($paramName));
$value = $this->request()->getHeader($paramName);
if(!empty($value)){
$value = $value[0];
}else{
$value = null;
}
break;
}
case 'FILE':{
$value = $this->request()->getUploadedFile($paramName);
break;
}
}
if($value !== null){
break;
Expand Down

0 comments on commit 33d9640

Please sign in to comment.