Project

General

Profile

Revision 5043

Added by daigle almost 11 years ago

change pw.println to print to remove newline at end of url

View differences:

src/edu/ucsb/nceas/metacat/util/RequestUtil.java
134 134
			urlConn.setDoOutput(true);
135 135
			
136 136
			PrintWriter pw = new PrintWriter(urlConn.getOutputStream());
137
			pw.println(paramsToQuery(params));
137
			String queryString = paramsToQuery(params);
138
			logMetacat.debug("Sending get request: " + urlString + "?" + queryString);
139
			pw.print(queryString);
138 140
			pw.close();
139 141
			
140 142
			// get the input from the request
......
359 361
			boolean firstParam = true;
360 362
			for (String paramName : params.keySet()) {
361 363
				if (firstParam) {
362
//					query = "?" ;
363 364
					firstParam = false;
364 365
				} else {
365 366
					query += "&";

Also available in: Unified diff