brianmario-yajl-ruby 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/VERSION.yml +1 -1
- data/benchmark/parse_json_and_yaml.rb +1 -1
- data/lib/yajl.rb +1 -1
- data/lib/yajl/http_stream.rb +1 -1
- data/yajl-ruby.gemspec +1 -1
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= Changelog
|
2
2
|
|
3
|
+
0.4.6 (May 17th, 2009)
|
4
|
+
* Applied a patch from benburkert (http://github.com/benburkert) to fix HTTP Basic Auth in
|
5
|
+
Yajl::HttpStream.get
|
6
|
+
|
3
7
|
0.4.5 (May 17th, 2009)
|
4
8
|
* added Yajl::Stream.encode(hash, io)
|
5
9
|
** generates a JSON string stream, and writes to IO
|
data/VERSION.yml
CHANGED
data/lib/yajl.rb
CHANGED
data/lib/yajl/http_stream.rb
CHANGED
@@ -30,7 +30,7 @@ module Yajl
|
|
30
30
|
socket = TCPSocket.new(uri.host, uri.port)
|
31
31
|
request = "GET #{uri.path}#{uri.query ? "?"+uri.query : nil} HTTP/1.1\r\n"
|
32
32
|
request << "Host: #{uri.host}\r\n"
|
33
|
-
request << "Authorization: Basic #{[userinfo].pack('m')}\r\n" unless uri.userinfo.nil?
|
33
|
+
request << "Authorization: Basic #{[uri.userinfo].pack('m')}\r\n" unless uri.userinfo.nil?
|
34
34
|
request << "User-Agent: #{user_agent}\r\n"
|
35
35
|
request << "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n"
|
36
36
|
request << "Connection: close\r\n"
|
data/yajl-ruby.gemspec
CHANGED