Changeset 4892
- Timestamp:
- 09/01/06 02:25:29 (2 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/integration.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r4885 r4892 1 1 *SVN* 2 3 * Integration tests: headers beginning with X aren't excluded from the HTTP_ prefix, so X-Requested-With becomes HTTP_X_REQUESTED_WITH as expected. [Mike Clark] 2 4 3 5 * Tighten rescue clauses. #5985 [james@grayproductions.net] trunk/actionpack/lib/action_controller/integration.rb
r4825 r4892 233 233 (headers || {}).each do |key, value| 234 234 key = key.to_s.upcase.gsub(/-/, "_") 235 key = "HTTP_#{key}" unless env.has_key?(key) || key =~ /^ X|HTTP/235 key = "HTTP_#{key}" unless env.has_key?(key) || key =~ /^HTTP_/ 236 236 env[key] = value 237 237 end