1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 01:31:57 +02:00

feat: enable use of patch as request method (#718)

This commit is contained in:
Jannik Keye
2019-03-14 09:36:10 +01:00
committed by Douman
parent 17ecdd63d2
commit bf8262196f
6 changed files with 35 additions and 0 deletions

View File

@@ -1398,3 +1398,11 @@ fn test_content_length() {
assert_eq!(response.headers().get(&header), Some(&value));
}
}
#[test]
fn test_patch_method() {
let mut srv = test::TestServer::new(|app| app.handler(|_| HttpResponse::Ok()));
let req = srv.patch().finish().unwrap();
let response = srv.execute(req.send()).unwrap();
assert!(response.status().is_success());
}