]> arthur.barton.de Git - netdata.git/commitdiff
fixed typo
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 22 Feb 2017 22:24:35 +0000 (00:24 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Wed, 22 Feb 2017 22:24:35 +0000 (00:24 +0200)
src/web_client.c

index ff66eb5c703535aa64bf5e23d843a587a9d168d9..e36876fd4c7fd6cef0d097606c31fcbd1b8e55b3 100644 (file)
@@ -1674,7 +1674,7 @@ int validate_stream_api_key(const char *key) {
 
 int web_client_stream_request(RRDHOST *host, struct web_client *w, char *url) {
     info("STREAM [%s]:%s: client connection.", w->client_ip, w->client_port);
-    
+
     char *key = NULL, *hostname = NULL, *machine_guid = NULL, *os = NULL;
     int update_every = default_rrd_update_every;
     int history = default_rrd_history_entries;
@@ -2040,8 +2040,8 @@ static inline HTTP_VALIDATION http_request_validate(struct web_client *w) {
         encoded_url = s = &s[8];
         w->mode = WEB_CLIENT_MODE_OPTIONS;
     }
-    else if(!strncmp(s, "STREAM ", 8)) {
-        encoded_url = s = &s[8];
+    else if(!strncmp(s, "STREAM ", 7)) {
+        encoded_url = s = &s[7];
         w->mode = WEB_CLIENT_MODE_STREAM;
     }
     else {