Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
Create object directly, rather than through reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex D'Andrea committed Dec 8, 2015
1 parent 8998a30 commit 4b6c67e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/php/scriptlet/HttpScriptletRequest.class.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php namespace scriptlet;

use peer\http\HttpConstants;
use io\streams\ChannelInputStream;

/**
* Defines the request sent by the client to the server
Expand Down Expand Up @@ -429,7 +430,7 @@ public function isMultiPart() {
public function getInputStream() {
if (null === $this->inputStream) {
if (null === $this->readData) {
$this->inputStream= \lang\XPClass::forName('io.streams.ChannelInputStream')->newInstance('input');
$this->inputStream= new ChannelInputStream('input');
} else {
$f= $this->readData;
$this->inputStream= $f();
Expand Down

0 comments on commit 4b6c67e

Please sign in to comment.