From 3a589d4ca640665b3dbd0f5702272e30c3a82049 Mon Sep 17 00:00:00 2001 From: "yihua.huang" Date: Thu, 8 Jun 2017 15:59:46 +0800 Subject: [PATCH] HttpRequestBody implements Serializable #594 --- .../java/us/codecraft/webmagic/model/HttpRequestBody.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webmagic-core/src/main/java/us/codecraft/webmagic/model/HttpRequestBody.java b/webmagic-core/src/main/java/us/codecraft/webmagic/model/HttpRequestBody.java index fc318ea..9d5f855 100644 --- a/webmagic-core/src/main/java/us/codecraft/webmagic/model/HttpRequestBody.java +++ b/webmagic-core/src/main/java/us/codecraft/webmagic/model/HttpRequestBody.java @@ -4,6 +4,7 @@ import org.apache.http.NameValuePair; import org.apache.http.client.utils.URLEncodedUtils; import org.apache.http.message.BasicNameValuePair; +import java.io.Serializable; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; @@ -13,7 +14,9 @@ import java.util.Map; * @author code4crafter@gmail.com * Date: 17/4/8 */ -public class HttpRequestBody { +public class HttpRequestBody implements Serializable { + + private static final long serialVersionUID = 5659170945717023595L; public static abstract class ContentType {