implement port number handling for retrieving subject list.
@@ -1,7 +1,7 @@ | ||
1 | 1 | /* |
2 | 2 | * subjectretriever.c |
3 | 3 | * |
4 | - * Copyright (c) 2009-2014 project bchan | |
4 | + * Copyright (c) 2009-2015 project bchan | |
5 | 5 | * |
6 | 6 | * This software is provided 'as-is', without any express or implied |
7 | 7 | * warranty. In no event will the authors be held liable for any damages |
@@ -98,6 +98,7 @@ | ||
98 | 98 | { |
99 | 99 | W host_len; |
100 | 100 | UB *host; |
101 | + UH port; | |
101 | 102 | |
102 | 103 | if (retriever->endpoint > 0) { |
103 | 104 | DP(("sbjtretriever_sendrequest: requesting\n")); |
@@ -105,8 +106,9 @@ | ||
105 | 106 | } |
106 | 107 | |
107 | 108 | sbjtcache_gethost(cache, &host, &host_len); |
109 | + sbjtcache_getport(cache, &port); | |
108 | 110 | |
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); | |
110 | 112 | if (retriever->endpoint < 0) { |
111 | 113 | DP_ER("http_connector_createendpoint error", retriever->endpoint); |
112 | 114 | return -1; |