Support PATCH requests

Created on 14 January 2015, almost 10 years ago
Updated 22 March 2024, 8 months ago

Was looking to get PATCH support included.

It's currently a @todo in the _chr_curl_request_type_option function.

The following seems to work ok for me:

    case 'PATCH':
      curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); 
      curl_setopt($ch, CURLOPT_POSTFIELDS, $options['data']);     
      $valid_method = TRUE;

I'll look at attaching this as a patch.

Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

🇦🇺Australia maikeru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024