Mercurial > irccd
comparison plugins/links/uri.cpp @ 785:7145a3df4cb7
misc: rename host to hostname, closes #941 @2h
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 07 Nov 2018 12:55:00 +0100 |
parents | 1b17b2af5a6b |
children | 06cc2f95f479 |
comparison
equal
deleted
inserted
replaced
783:d0bd19183743 | 785:7145a3df4cb7 |
---|---|
66 // Correct port if not specified. | 66 // Correct port if not specified. |
67 if (ret.port.empty()) | 67 if (ret.port.empty()) |
68 ret.port = ret.scheme == "http" ? "80" : "443"; | 68 ret.port = ret.scheme == "http" ? "80" : "443"; |
69 | 69 |
70 if (hnd.hostText.first) | 70 if (hnd.hostText.first) |
71 ret.host = string(hnd.hostText.first, hnd.hostText.afterLast - hnd.hostText.first); | 71 ret.hostname = string(hnd.hostText.first, hnd.hostText.afterLast - hnd.hostText.first); |
72 if (hnd.portText.first) | 72 if (hnd.portText.first) |
73 ret.port = string(hnd.portText.first, hnd.portText.afterLast - hnd.portText.first); | 73 ret.port = string(hnd.portText.first, hnd.portText.afterLast - hnd.portText.first); |
74 | 74 |
75 for (auto p = hnd.pathHead; p != nullptr; p = p->next) { | 75 for (auto p = hnd.pathHead; p != nullptr; p = p->next) { |
76 ret.path += "/"; | 76 ret.path += "/"; |