mirror of
https://github.com/extism/extism.git
synced 2026-01-12 15:28:05 -05:00
Compare commits
1 Commits
kernel-tes
...
uppercase-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acc808f5c3 |
@@ -233,7 +233,10 @@ pub(crate) fn http_request(
|
||||
)));
|
||||
}
|
||||
|
||||
let mut r = ureq::request(req.method.as_deref().unwrap_or("GET"), &req.url);
|
||||
// default to GET and uppercase
|
||||
let http_method = req.method.unwrap_or("GET".into()).to_uppercase();
|
||||
|
||||
let mut r = ureq::request(http_method.as_ref(), &req.url);
|
||||
|
||||
for (k, v) in req.headers.iter() {
|
||||
r = r.set(k, v);
|
||||
|
||||
Reference in New Issue
Block a user