Revision a2411896 src/gr/grnet/pithos/web/client/commands/PasteCommand.java

b/src/gr/grnet/pithos/web/client/commands/PasteCommand.java
48 48

  
49 49
import com.google.gwt.core.client.GWT;
50 50
import com.google.gwt.http.client.Response;
51
import com.google.gwt.http.client.URL;
51 52
import com.google.gwt.user.client.Command;
52 53
import com.google.gwt.user.client.ui.PopupPanel;
53 54

  
......
157 158
				}
158 159
            };
159 160
            copyFile.setHeader("X-Auth-Token", app.getToken());
160
            copyFile.setHeader("X-Move-From", file.getUri());
161
            copyFile.setHeader("X-Move-From", URL.encodePathSegment(file.getUri()));
161 162
            copyFile.setHeader("Content-Type", file.getContentType());
162 163
            Scheduler.get().scheduleDeferred(copyFile);
163 164
        }

Also available in: Unified diff