-
-
Notifications
You must be signed in to change notification settings - Fork 518
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
refactor: ⬆️ Update ureq #2699
base: master
Are you sure you want to change the base?
refactor: ⬆️ Update ureq #2699
Conversation
alvr/adb/src/commands.rs
Outdated
.headers() | ||
.get("Content-Length") | ||
.map(|l| l.to_str().ok()) | ||
.flatten() |
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.
clippy
// todo: this should be changed to a GET request, requires removing body | ||
request_agent | ||
.get(&uri) | ||
.set("X-ALVR", "true") | ||
.post(&uri) | ||
.header("X-ALVR", "true") |
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.
huh? I guess post will also work, but wdym by removing body for the get? If anything I think it should be kept as a get in the scope of this pr, so you gotta explain a bit further why that's not possible
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.
Using the new ureq 3.0 api, when using get() you can't later call send_json. I think they split the builder struct to disable unidiomatic usages
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.
In general GET requests shouldn't have a body and all the info they send to the server required for the request should be put in the URL itself. this means we should remove the DashboardRequest structure and make separate URLs (as it was before)
No description provided.