Commit 1c3bbbd1 authored by gmantele's avatar gmantele
Browse files

[TAP] Fix MAXREC bug (maxrec was ignored if = 0) & Replace the MIME type for...

[TAP] Fix MAXREC bug (maxrec was ignored if = 0) & Replace the MIME type for VOTable output from 'text/xml' to 'application/xml'
parent fbeb58f6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ public class VOTableFormat implements OutputFormat {

	@Override
	public final String getMimeType(){
		return "text/xml";
		return "application/xml";
	}

	@Override
@@ -599,7 +599,7 @@ public class VOTableFormat implements OutputFormat {
				public boolean next() throws IOException{
					irow++;
					try{
						if (maxrec <= 0 || irow < maxrec){
						if (maxrec < 0 || irow < maxrec){
							boolean hasNext = tableIt.nextRow();
							if (hasNext){
								for(int i = 0; i < nbCol && tableIt.hasNextCol(); i++)