Commit fe98744

mo khan <mo@mokhan.ca>
2015-02-05 05:15:57
include path to file in disposition query.
1 parent 6c1f2fc
Changed files (1)
lib/fake_agent.rb
@@ -21,7 +21,10 @@ class FakeAgent
     Dir["**/**/*"].each do |file|
       next unless File.file?(file)
       url = "#{endpoint}/agents/#{id}/files/#{fingerprint_for(file)}"
-      response = Typhoeus.get(url)
+      body = {
+        path: File.expand_path(file)
+      }
+      response = Typhoeus.get(url, body: body)
       body = JSON.parse(response.body)
       puts body.inspect
       case body["state"]