@@ -2182,18 +2182,19 @@ int WebSend(char *buffer)
2182
2182
// buffer = | [ 192.168.178.86 : 80 , admin : joker ] POWER1 ON |
2183
2183
host = strtok_r (buffer, " ]" , &command); // host = | [ 192.168.178.86 : 80 , admin : joker |, command = | POWER1 ON |
2184
2184
if (host && command) {
2185
- String url = F (" http:" ); // url = |http:|
2185
+ String url = F (" http:// " ); // url = |http:// |
2186
2186
host = Trim (host); // host = |[ 192.168.178.86 : 80 , admin : joker|
2187
2187
host++; // host = | 192.168.178.86 : 80 , admin : joker| - Skip [
2188
2188
host = strtok_r (host, " ," , &user); // host = | 192.168.178.86 : 80 |, user = | admin : joker|
2189
2189
host = strtok_r (host, " :" , &port); // host = | 192.168.178.86 |, port = | 80 |
2190
2190
host = Trim (host); // host = |192.168.178.86|
2191
+ url += host; // url = |http://192.168.178.86|
2192
+
2191
2193
if (port) {
2192
2194
port = Trim (port); // port = |80|
2193
- url += port; // url = |http:80|
2195
+ url += F (" :" ); // url = |http://192.168.178.86:|
2196
+ url += port; // url = |http://192.168.178.86:80|
2194
2197
}
2195
- url += F (" //" ); // url = |http://| or |http:80//|
2196
- url += host; // url = |http://192.168.178.86|
2197
2198
2198
2199
if (user) {
2199
2200
user = strtok_r (user, " :" , &password); // user = | admin |, password = | joker|
0 commit comments