lib/em-http/http_header.rb in em-http-request-1.0.0 vs lib/em-http/http_header.rb in em-http-request-1.0.1
- old
+ new
@@ -50,7 +50,11 @@
end
def location
self[HttpClient::LOCATION]
end
+
+ def [](key)
+ super(key) || super(key.upcase.gsub('-','_'))
+ end
end
end