Commit 7b1a40fd authored by Patrick Griffis's avatar Patrick Griffis

Fix TRACE method not being considered safe and idempotent

As defined by RFC 7231
parent b8c06d3b
Pipeline #147235 passed with stage
in 1 minute and 2 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment