@cryptotaxi247 / netdata-1 / commits / f744ce49e

fixed content type for enabling application level redirect at the registry

Costa Tsaousis committed Jun 2, 2016 at 18:13 UTC f744ce49ec3576f9c953356efd246eee47a04a1e
1 file changed +1
src/web_client.c
+1
@@ -992,6 +992,7 @@ int web_client_api_request_v1_registry(struct web_client *w, char *url)
992 redirects++;
993
994 registry_set_cookie(w, "give-me-back-this-cookie-please");
995 + w->response.data->contenttype = CT_APPLICATION_JSON;
996 buffer_sprintf(w->response.data, "{ \"status\": \"redirect\", \"registry\": \"%s\" }", registry_to_announce());
997
998 /*