Download & Extend

Deal with !empty($curl_options[CURLOPT_POST]) in browser.inc

Project:Browser
Version:7.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:boombatower
Status:closed (fixed)

Issue Summary

Deal with this bit from DrupalWebTestCase.

<?php
if (!empty($curl_options[CURLOPT_POST])) {
 
// This is a fix for the Curl library to prevent Expect: 100-continue
  // headers in POST requests, that may cause unexpected HTTP response
  // codes from some webservers (like lighttpd that returns a 417 error
  // code). It is done by setting an empty "Expect" header field that is
  // not overwritten by Curl.
 
$curl_options[CURLOPT_HTTPHEADER][] = 'Expect:';
}
?>

Comments

#1

Project:Drupal core» Browser
Version:7.x-dev» 7.x-1.x-dev
Component:browser system» Code

Move to Browser module for further development.

#2

Assigned to:Anonymous» boombatower
Status:active» needs review
AttachmentSize
555374-expect-header.patch 938 bytes

#3

Status:needs review» fixed

Committed.

AttachmentSize
555374-expect-header.patch 951 bytes

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here