Changeset 8167
- Timestamp:
- 11/19/07 00:06:23 (9 months ago)
- Files:
-
- trunk/activeresource/CHANGELOG (modified) (1 diff)
- trunk/activeresource/lib/active_resource/connection.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activeresource/CHANGELOG
r8090 r8167 1 * Don't cache net/http object so that ActiveResource is more thread-safe. Closes #10142 [kou] 2 1 3 * Update XML documentation examples to include explicit type attributes. Closes #9754 [hasmanyjosh] 2 4 trunk/activeresource/lib/active_resource/connection.rb
r7518 r8167 128 128 end 129 129 130 # Creates new (or uses currently instantiated)Net::HTTP instance for communication with130 # Creates new Net::HTTP instance for communication with 131 131 # remote service and resources. 132 132 def http 133 unless @http 134 @http = Net::HTTP.new(@site.host, @site.port) 135 @http.use_ssl = @site.is_a?(URI::HTTPS) 136 @http.verify_mode = OpenSSL::SSL::VERIFY_NONE if @http.use_ssl 137 end 138 139 @http 133 http = Net::HTTP.new(@site.host, @site.port) 134 http.use_ssl = @site.is_a?(URI::HTTPS) 135 http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl 136 http 140 137 end 141 138