http client case sensitive headers

pwardrop - December 3, 2008 - 05:50

I'm a new user to Drupal so I hope I'm posting this message to the appropriate forum.

I've encountered a problem while testing the OpenID module against an OpenID Provider. The OpenID provider returned an all lower-case 'content-type' HTTP header, but I noticed that the OpenID module was looking for a mixed case 'Content-Type' header. Since the call to drupal_http_request() returns the HTTP headers exactly like they are on-the-wire, and the caller used a mixed case string match the condition failed.

I noticed this content (http://drupal.org/node/303838) posted for Drupal 7.x. I made the suggested changes in includes/common.inc and openid.module in my environment to force all headers to be all lower-case and my test completed successfully.

I didn't find anything relevant for Drupal 5.x posted, are items like this back ported to older releases? Would it be recommended I open a bug for this.

Thanks,
--Pat

 
 

Drupal is a registered trademark of Dries Buytaert.