From d6d0c811ec4fd3887a4f8908c83b3eca1aa49dbf Mon Sep 17 00:00:00 2001
From: RedKale <22250530@qq.com>
Date: Thu, 7 Apr 2016 16:47:31 +0800
Subject: [PATCH]
---
src/org/redkale/net/http/HttpRequest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/org/redkale/net/http/HttpRequest.java b/src/org/redkale/net/http/HttpRequest.java
index a8bb9c5f7..97d2caf08 100644
--- a/src/org/redkale/net/http/HttpRequest.java
+++ b/src/org/redkale/net/http/HttpRequest.java
@@ -22,7 +22,7 @@ import org.redkale.util.ByteArray;
* 例如简单的翻页查询 /pipes/record/query/page:2/size:20
* 获取页号: int page = request.getRequstURIPath("page:", 1);
* 获取行数: int size = request.getRequstURIPath("size:", 10);
- *
+ *
*
* 详情见: http://www.redkale.org
*
@@ -274,9 +274,9 @@ public class HttpRequest extends Request {
public String toString() {
parseBody();
return this.getClass().getSimpleName() + "{method:" + this.method + ", requestURI:" + this.requestURI
- + ", contentType:" + this.contentType + ", connection:" + this.connection + ", protocol:" + this.protocol
- + ", contentLength:" + this.contentLength + ", cookies:" + this.cookiestr
- + ", host:" + this.host + ", params:" + this.params + ", header:" + this.header + "}";
+ + ", remoteAddr:" + this.getRemoteAddr() + ", cookies:" + this.cookiestr + ", contentType:" + this.contentType
+ + ", connection:" + this.connection + ", protocol:" + this.protocol + ", contentLength:" + this.contentLength
+ + ", host:" + this.host + ", params:" + this.params + ", header:" + this.header + "}";
}
/**
@@ -286,7 +286,7 @@ public class HttpRequest extends Request {
*/
public final MultiContext getMultiContext() {
return new MultiContext(context.getCharset(), this.getContentType(), this.params,
- new BufferedInputStream(Channels.newInputStream(this.channel), Math.max(array.size(), 8192)) {
+ new BufferedInputStream(Channels.newInputStream(this.channel), Math.max(array.size(), 8192)) {
{
array.copyTo(this.buf);
this.count = array.size();