WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#8500 closed defect (bug) (fixed)

User-Agent cannot set in WP_Http_Streams

Reported by: alexrabe Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: Optimization Keywords:
Focuses: Cc:

Description

I tested my plugin checker with the new http class and cannot change the user-agent.

In class WP_Http_Streams() the user-agent is defined with the array key "user-agent", but it should be "user_agent" (see http://de2.php.net/manual/de/context.http.php).

Tested with PHP 5.2.6 / WIN

Attachments (1)

user_agent.patch (459 bytes) - added by alexrabe 5 years ago.
fix for user-agent

Download all attachments as: .zip

Change History (2)

alexrabe5 years ago

fix for user-agent

comment:1 ryan5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10072]) user_agent, not user-agent, for Streams transport. Props alexrabe. fixes #8500

Note: See TracTickets for help on using tickets.