Skip to content

Reduce logic of proxy determining in MicroBlog.as #1

Description

@GoogleCodeExporter
if(_useProxy) executeRequest(uri, getMicroBlogRequest(PROXY_URL, params, 
URLRequestMethod.POST));
else executeRequest(uri, getMicroBlogRequest(API_BASE_URL + uri, params, 
URLRequestMethod.POST));

//  to below

public function get apiURL ():String
{
    return this._useProxy:Boolean ? PROXY_URL : API_BASE_URL;
}

executeRequest(uri, getMicroBlogRequest(apiURL + uri, params, 
URLRequestMethod.POST));


Original issue reported on code.google.com by himcot...@gmail.com on 18 Apr 2011 at 3:21

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions