From b778ae4c5e5bcb6da4de789e25971f40f0673d86 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 19 Jun 2017 14:10:33 +0200 Subject: http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASH ... to enable sending "OPTIONS *" which wasn't possible previously. This option currently only works for HTTP. Added test cases 1298 + 1299 to verify Fixes #1280 Closes #1462 --- include/curl/curl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/curl/curl.h b/include/curl/curl.h index 75cc14abc..521aa5e78 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -1780,6 +1780,9 @@ typedef enum { /* Suppress proxy CONNECT response headers from user callbacks */ CINIT(SUPPRESS_CONNECT_HEADERS, LONG, 265), + /* Strip the initial slash from the path taken from the URL */ + CINIT(STRIP_PATH_SLASH, LONG, 266), + CURLOPT_LASTENTRY /* the last unused */ } CURLoption; -- cgit v1.2.3