-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
New hardcoded dataserver url points to a 308 Permanent Redirect #131
Conversation
Also, according to RFC7538, section 3, The Hypertext Transfer Protocol Status Code 308 (Permanent Redirect):
|
Indeed, HTTP 308 Permanent Redirect was added in version |
@raveit65 can this PR be reviewed for merge ? |
GNOME's And in their related issue, the changed url is also mentioned without "www": https://gitlab.gnome.org/GNOME/libgweather/-/issues/232 I guess the added "www" comes from that comment: #79 (comment) O. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine with fedora 38 (libsoup-2.74.3-2.fc38.x86_64).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A quick test with this installed gave weather information as expected
A proper test would be with |
I successfully tested billyswong's "no www." binary hack on Linux Mint MATE 20.2 Uma using: |
I do not use a distro with such an old (obsolete) code base, and i assumed that you tested your PR with an old version, see first post. New stable release |
For some reason (which I guess is my old setup with a lot of customized things), the changed url implemented in 0cc07f7 was not working for me.
After looking at the code and using
gdb
I found out that the URL with theẁww.
prefix added is a308 Permanent Redirect
to the url without thewww.
and it was resulting in an unsuccessful request. It may be related to thelibsoup
version I have installed (2.64.2-2
) not following the redirect...So long story short, removing the
www.
from the hardcoded URL did the trick and I think that pointing to the real URL would be best.CURL request:
O.