Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Include the "scheme" in self links #77
Rdap self links do not include the "scheme" - the protocol prefix like http:// or https:// - so they are neither valid relative nor absolute links (referred to as suffix references in rfc 3986). This PR adds the "scheme" and the "://" to each of the Servlets, as part of the variable called "header". The header goes nowhere other than the Link object, so this seems to work well and maintain consistency.
This change is RFC compliant, and brings reddog in line with verisign rdap, as well as all the usual REST services. The following is an example of a new links section:
In order to complete the proposal, the commit 5f251bb has been made to consider that the server can be behind a proxy/balancer.
Now the scheme will be retrieved considering HTTP headers "Forwarded" (optional and defined at RFC 7239 section 5.4) and "X-Forwarded-Proto" (a de facto standard); headers that could be sent by a proxy/balancer. If none of those headers is sent, then the function