[fractal/clippy-ci: 18/25] fractal-api: Change the well-known request to be a GET.



commit 5adc0f0c79d1d1012078d709a00c424d009273eb
Author: Damir Jelić <poljar termina org uk>
Date:   Fri Feb 14 12:47:35 2020 +0100

    fractal-api: Change the well-known request to be a GET.
    
    The well-known requests for homeserver discovery was a POST request
    while the spec[1] states it should be a GET request.
    
    [1] https://matrix.org/docs/spec/client_server/latest#get-well-known-matrix-client

 fractal-matrix-api/src/r0/server/domain_info.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/fractal-matrix-api/src/r0/server/domain_info.rs b/fractal-matrix-api/src/r0/server/domain_info.rs
index 5e1f3778..1447c895 100644
--- a/fractal-matrix-api/src/r0/server/domain_info.rs
+++ b/fractal-matrix-api/src/r0/server/domain_info.rs
@@ -30,5 +30,5 @@ pub fn request(base: Url) -> Result<Request, Error> {
         .join("/.well-known/matrix/client")
         .expect("Malformed URL in domain_info");
 
-    Client::new().post(url).build()
+    Client::new().get(url).build()
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]