Commit a0d6bf63 authored by Liang Ding's avatar Liang Ding

同步文章、广播 clientHost 字段值使用 Serve Path

parent ee6f3370
......@@ -48,7 +48,7 @@ import org.json.JSONObject;
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @author ArmstrongCN
* @version 1.0.2.6, Apr 16, 2013
* @version 1.0.2.7, Jun 13, 2013
* @since 0.3.1
*/
public final class ArticleSender extends AbstractEventListener<JSONObject> {
......@@ -132,7 +132,7 @@ public final class ArticleSender extends AbstractEventListener<JSONObject> {
requestJSONObject.put(Common.BLOG_VERSION, SoloServletListener.VERSION);
requestJSONObject.put(Common.BLOG, "B3log Solo");
requestJSONObject.put(Preference.BLOG_TITLE, preference.getString(Preference.BLOG_TITLE));
requestJSONObject.put("blogHost", Latkes.getServerHost() + ":" + Latkes.getServerPort());
requestJSONObject.put("blogHost", Latkes.getServePath());
requestJSONObject.put("userB3Key", preference.optString(Preference.KEY_OF_SOLO));
requestJSONObject.put("clientAdminEmail", preference.optString(Preference.ADMIN_EMAIL));
requestJSONObject.put("clientRuntimeEnv", Latkes.getRuntimeEnv().name());
......
......@@ -51,7 +51,7 @@ import org.json.JSONObject;
* Broadcast chance processor.
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.0.8, Apr 24, 2013
* @version 1.0.0.9, Jun 13, 2013
* @since 0.6.0
*/
@RequestProcessor
......@@ -293,7 +293,7 @@ public final class ChanceProcessor {
broadcastRequest.put("clientTitle", clientTitle);
broadcastRequest.put("clientVersion", clientVersion);
broadcastRequest.put("clientName", clientName);
broadcastRequest.put("clientHost", Latkes.getServerHost() + ":" + Latkes.getServerPort());
broadcastRequest.put("clientHost", Latkes.getServePath());
final HTTPRequest httpRequest = new HTTPRequest();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment