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

UnknownContentError in Update response #6

Closed
prabindh opened this issue May 11, 2017 · 4 comments
Closed

UnknownContentError in Update response #6

prabindh opened this issue May 11, 2017 · 4 comments

Comments

@prabindh
Copy link

With Qt5.7 and Win10, QNetworkRequest(url()) returns UnknownContentError. To ensure response is correctly received, need to set user-agent string before making the request. Would be good to expose an API for it, or use some default string (like Mozilla/*).

@alex-spataru
Copy link
Owner

I think that the best thing to do would be to expose an API that allows programmers to set an user-agent string before making a request. If no user-agent string is provided, QSimpleUpdater could fall-back to some default user-agent string.

I'll take a look at this issue later this evening. Thanks for the report!

@prabindh
Copy link
Author

Any update ?

alex-spataru added a commit that referenced this issue May 23, 2017
@alex-spataru
Copy link
Owner

@prabindh Sorry for the late reply, I have added a simple API that allows you to set a custom user-agent string. By default, the user-agent string will be <app-name>/<app-version> (Qt; QSimpleUpdater). Let me know if this works for you!

@prabindh
Copy link
Author

That works, thanks!

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

No branches or pull requests

2 participants