Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts/legal_info_html: Fix HTTP 301 Moved Permanently issue with li… #90

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

mhennerich
Copy link
Contributor

@mhennerich mhennerich commented Oct 11, 2023

…bxml2

The script checks for thw presence of the download sources. When checking libxml2 ,HTTP 301 is returned with a relative location/path on the same host. In fact it just complains about a missing '/' in the URL. Assuming the location doesn't contain a protocol stop and validate the original URL.

$ curl -IsS https://download.gnome.org/sources/libxml2/2.10
HTTP/2 301
server: nginx/1.24.0
content-type: text/html
location: /sources/libxml2/2.10/

$ curl -IsS https://download.gnome.org/sources/libxml2/2.10/
HTTP/2 200

…bxml2

The script checks for thw presence of the download sources.
When checking libxml2 ,HTTP 301 is returned with a relative location/path
on the same host. In fact it just complains about a missing '/' in the
URL. Assuming the location doesn't contain a protocol stop and validate
the original URL.


$ curl -IsS https://download.gnome.org/sources/libxml2/2.10
HTTP/2 301
server: nginx/1.24.0
content-type: text/html
location: /sources/libxml2/2.10/


$ curl -IsS https://download.gnome.org/sources/libxml2/2.10/
HTTP/2 200

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
@mhennerich mhennerich requested a review from a team October 11, 2023 11:46
@mhennerich mhennerich merged commit 183c0f4 into master Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants