lib/rupnp/cp/base.rb in rupnp-0.2.0 vs lib/rupnp/cp/base.rb in rupnp-0.2.1
- old
+ new
@@ -48,9 +48,10 @@
http.headers do |h|
unless h['SERVER'] =~ /UPnP\/1\.\d/
log :error, "Not a supported UPnP response : #{h['SERVER']}"
http.cancel_callback callback
+ http.fail
end
end
http.callback &callback
end