diff --git a/README.md b/README.md index 3f8190c4cb..747d308246 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ # WireCloud +This study was financed, in part, by the São Paulo Research Foundation (FAPESP), Brasil. Process Number #2024/23727-8. +The opinions, hypotheses, conclusions or recommendations expressed in this material are the responsibility of the author(s) and do not necessarily reflect the views of FAPESP. + [![](https://nexus.lab.fiware.org/repository/raw/public/badges/chapters/visualization.svg)](https://www.fiware.org/developers/catalogue/) [![License: AGPLv3+ with classpath-like exception](https://img.shields.io/badge/License-AGPLv3+%20with%20classpath--like%20exception-blue.svg)](./LICENSE) [![Docker Status](https://img.shields.io/docker/pulls/fiware/wirecloud.svg)](https://hub.docker.com/r/fiware/wirecloud/) diff --git a/src/wirecloud/proxy/views.py b/src/wirecloud/proxy/views.py index 1e25fa3820..186a54a560 100644 --- a/src/wirecloud/proxy/views.py +++ b/src/wirecloud/proxy/views.py @@ -141,7 +141,9 @@ class Proxy(): socket.setdefaulttimeout(60) def do_request(self, request, url, method, request_data): - + + parsed_url = urlparse(url) + protocol = parsed_url.scheme.upper() url = iri_to_uri(url) request_data.update({ @@ -165,7 +167,7 @@ def do_request(self, request, url, method, request_data): else: protocolVersion = '1.1' - via_header = "%s %s (Wirecloud-python-Proxy/1.1)" % (protocolVersion, get_current_domain(request)) + via_header = "%s/%s %s (Wirecloud-python-Proxy/1.1)" % (protocol, protocolVersion, get_current_domain(request)) if 'via' in request_data['headers']: request_data['headers']['via'] += ', ' + via_header else: