Revision 45c76262 src/gr/grnet/pithos/web/client/rest/GetRequest.java

b/src/gr/grnet/pithos/web/client/rest/GetRequest.java
35 35

  
36 36
package gr.grnet.pithos.web.client.rest;
37 37

  
38
import gr.grnet.pithos.web.client.Const;
39
import gr.grnet.pithos.web.client.Helpers;
38 40
import gr.grnet.pithos.web.client.Pithos;
39 41
import gr.grnet.pithos.web.client.Resource;
40 42

  
......
92 94

  
93 95
    @Override
94 96
    public void execute() {
95
    	if (path.contains("?"))
97
    	if (path.contains(Const.QUESTION_MARK)) {
96 98
    		path += "&t=" + System.currentTimeMillis();
97
    	else
99
        }
100
    	else {
98 101
    		path += "?t=" + System.currentTimeMillis();
99
        Pithos.LOG("GET api = ", api, ", owner = ", owner, ", path = ", path);
100
        Pithos.LOG("   ==> ", api + owner + path);
102
        }
103

  
104
        Pithos.LOG("GET ", api + owner + path);
105

  
101 106
        RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, api + owner + path);
107
        Helpers.setHeaders(builder, headers);
102 108

  
103
        for (String header : headers.keySet()) {
104
            builder.setHeader(header, headers.get(header));
105
        }
106 109
        try {
107 110
            builder.sendRequest("", new RestRequestCallback<T>(api + owner + path, okCode) {
108 111
                @Override

Also available in: Unified diff