• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂659 (tree)
時間2015-03-14 19:00:52
作者ornse01

Log Message

implement port number handling for retrieving subject list.

Change Summary

差異

--- bchanl/trunk/src/subjectretriever.c (revision 658)
+++ bchanl/trunk/src/subjectretriever.c (revision 659)
@@ -1,7 +1,7 @@
11 /*
22 * subjectretriever.c
33 *
4- * Copyright (c) 2009-2014 project bchan
4+ * Copyright (c) 2009-2015 project bchan
55 *
66 * This software is provided 'as-is', without any express or implied
77 * warranty. In no event will the authors be held liable for any damages
@@ -98,6 +98,7 @@
9898 {
9999 W host_len;
100100 UB *host;
101+ UH port;
101102
102103 if (retriever->endpoint > 0) {
103104 DP(("sbjtretriever_sendrequest: requesting\n"));
@@ -105,8 +106,9 @@
105106 }
106107
107108 sbjtcache_gethost(cache, &host, &host_len);
109+ sbjtcache_getport(cache, &port);
108110
109- retriever->endpoint = http_connector_createendpoint(retriever->connector, host, host_len, 80, HTTP_METHOD_GET);
111+ retriever->endpoint = http_connector_createendpoint(retriever->connector, host, host_len, port, HTTP_METHOD_GET);
110112 if (retriever->endpoint < 0) {
111113 DP_ER("http_connector_createendpoint error", retriever->endpoint);
112114 return -1;
Show on old repository browser