Skip to content

Commit

Permalink
Merge b1f6af8 into b723fd1
Browse files Browse the repository at this point in the history
  • Loading branch information
littlehz committed Apr 5, 2017
2 parents b723fd1 + b1f6af8 commit f88a0e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/LaravooleCommand.php
Expand Up @@ -156,7 +156,7 @@ protected function start()

$handle = popen(PHP_BINARY . ' ' . __DIR__ . '/../../src/Entry.php', 'w');
fwrite($handle, serialize($configs));
fclose($handle);
pclose($handle);
}

protected function getPid()
Expand Down
2 changes: 1 addition & 1 deletion src/Wrapper/SwooleHttpWrapper.php
Expand Up @@ -52,7 +52,7 @@ protected function ucHeaders($request)
$new_header = [];
$uc_header = [];
foreach ($request->header as $key => $value) {
$new_header['http_' . $key] = $value;
$new_header['http_' . strtr($key, '-', '_')] = $value;
$uc_header[ucwords($key, '-')] = $value;
}
$server = array_merge($request->server, $new_header);
Expand Down

0 comments on commit f88a0e4

Please sign in to comment.