Make sure writer is closed so we don't leak file handles

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2319 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2011-10-11 20:14:13 +00:00
parent 16421303cb
commit d4ec9f3279

View File

@ -145,6 +145,7 @@ abstract public class GDataExtension {
new OutputStreamWriter(request.getRequestStream());
writer.append("sql=" + URLEncoder.encode(query, "UTF-8"));
writer.flush();
writer.close();
return request;
}