Have a look at SiteTreeTest->testClassDropdown() for example :)


On 31/01/2013, at 6:46 PM, Daniel Hensby <notifications@github.com> wrote:

> In api/RestfulService.php:
> 
> > @@ -35,6 +37,22 @@ public static function set_default_proxy($proxy, $port = 80, $user = "", $passwo
> >  			CURLOPT_PROXYTYPE => ($socks ? CURLPROXY_SOCKS5 : CURLPROXY_HTTP)
> >  		);
> >  	}
> > +
> > +	/**
> > +	 * Sets a custom user agent so that you can identify your webapp. This can
> > +	 * sometimes be required by APIs to identify you
> > +	 */
> > +	public static function set_custom_ua($userAgent) {
> > +		self::$custom_ua = $userAgent;
> Ok, taken this out now.
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>