Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed policy request regex

  • Loading branch information...
commit 64310467e8431b80a777a67073ee34bc2cd14b72 1 parent 30ff737
istinkatruby authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/em-websocket-server/server.rb
View
4 lib/em-websocket-server/server.rb
@@ -69,7 +69,7 @@ def receive_data data
on_receive msg.gsub(Frame, "")
end
else
- if data =~ /</
+ if data =~ /\A<policy-file-request\s*\/>/
Log.debug "Sending flash policy #{self.class.policy_content}"
send_data self.class.policy
close_connection_after_writing
@@ -154,4 +154,4 @@ def default_policy
end
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.