Skip to content

Commit

Permalink
fix(request): set correct options for proxy URI schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsastrix committed Aug 23, 2024
1 parent 68c4275 commit 906e151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcoap/src/message/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ impl CoapRequest {
/// Converts this request into a [CoapMessage] that can be sent over a [CoapSession](crate::session::CoapSession).
pub fn into_message(mut self) -> CoapMessage {
if self.uri.is_proxy() {
self.pdu.add_option(CoapOption::ProxyUri(
self.pdu.add_option(CoapOption::ProxyScheme(
self.uri.scheme().expect("Parsed CoAP URI must have scheme").to_string(),
))
}
Expand Down

0 comments on commit 906e151

Please sign in to comment.