[libsoup] Fix TRACE method not being considered safe and idempotent



commit 7b1a40fdcea183e53cd83b513bff70ac232ba1ce
Author: Patrick Griffis <pgriffis igalia com>
Date:   Tue Jan 28 22:30:42 2020 -0800

    Fix TRACE method not being considered safe and idempotent
    
    As defined by RFC 7231

 libsoup/soup-misc-private.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libsoup/soup-misc-private.h b/libsoup/soup-misc-private.h
index d8416f23..a05071ef 100644
--- a/libsoup/soup-misc-private.h
+++ b/libsoup/soup-misc-private.h
@@ -21,12 +21,14 @@ gboolean soup_uri_is_https (SoupURI *uri, char **aliases);
 #define SOUP_METHOD_IS_SAFE(method) (method == SOUP_METHOD_GET || \
                                     method == SOUP_METHOD_HEAD || \
                                     method == SOUP_METHOD_OPTIONS || \
-                                    method == SOUP_METHOD_PROPFIND)
+                                    method == SOUP_METHOD_PROPFIND || \
+                                    method == SOUP_METHOD_TRACE)
 
 #define SOUP_METHOD_IS_IDEMPOTENT(method) (method == SOUP_METHOD_GET || \
                                           method == SOUP_METHOD_HEAD || \
                                           method == SOUP_METHOD_OPTIONS || \
                                           method == SOUP_METHOD_PROPFIND || \
+                                          method == SOUP_METHOD_TRACE || \
                                           method == SOUP_METHOD_PUT || \
                                           method == SOUP_METHOD_DELETE)
 


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