Author: richard
Date: Fri Feb  6 03:38:22 2009
New Revision: 4059

URL: http://svn.slimdevices.com?rev=4059&root=Jive&view=rev
Log:
Bug: N/A
Description:
Modified http user-agent to allow the device type to be determined by SN (jive, 
desktop, etc).


Modified:
    7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SocketHttp.lua

Modified: 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SocketHttp.lua
URL: 
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SocketHttp.lua?rev=4059&root=Jive&r1=4058&r2=4059&view=diff
==============================================================================
--- 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SocketHttp.lua 
(original)
+++ 7.4/trunk/squeezeplay/src/squeezeplay/share/jive/net/SocketHttp.lua Fri Feb 
 6 03:38:22 2009
@@ -41,6 +41,8 @@
 local socket      = require("socket")
 local mime        = require("mime")
 local ltn12       = require("ltn12")
+
+local System      = require("jive.System")
 
 local Task        = require("jive.ui.Task")
 
@@ -253,7 +255,14 @@
 
        -- default set
        local headers = {
-               ["User-Agent"] = 'Jive/' .. JIVE_VERSION,
+               ["User-Agent"] = table.concat({
+                       'SqueezePlay-',
+                       System:getMachine(),
+                       '/',
+                       string.gsub(JIVE_VERSION, "%s", "-"),
+                       ' (',
+                       System:getArch(),
+                       ')'})
        }
        
        local ip, port = self:t_getAddressPort()

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to