Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
6 changes: 4 additions & 2 deletions src/wirecloud/proxy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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:
Expand Down