fixed typo
Costa Tsaousis (ktsaou) committed
Feb 23, 2017 at 00:24 UTC
777a0b480f639bc170255838f83aeb3b937cebb3
1 file changed
+3
-3
src/web_client.c
+3
-3
@@ -1674,7 +1674,7 @@ int validate_stream_api_key(const char *key) {
1674
1675
int web_client_stream_request(RRDHOST *host, struct web_client *w, char *url) {
1676
info("STREAM [%s]:%s: client connection.", w->client_ip, w->client_port);
1677
-
1677
+
1678
char *key = NULL, *hostname = NULL, *machine_guid = NULL, *os = NULL;
1679
int update_every = default_rrd_update_every;
1680
int history = default_rrd_history_entries;
@@ -2040,8 +2040,8 @@ static inline HTTP_VALIDATION http_request_validate(struct web_client *w) {
2040
encoded_url = s = &s[8];
2041
w->mode = WEB_CLIENT_MODE_OPTIONS;
2042
}
2043
- else if(!strncmp(s, "STREAM ", 8)) {
2044
- encoded_url = s = &s[8];
2043
+ else if(!strncmp(s, "STREAM ", 7)) {
2044
+ encoded_url = s = &s[7];
2045
w->mode = WEB_CLIENT_MODE_STREAM;
2046
}
2047
else {