changeset 780:6a87d51ae0ed

allow parameters for HTTP DELETE
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 29 Aug 2016 21:47:19 -0600
parents c38f6619feb9
children fbbdd369a13a
files src/luan/modules/url/LuanUrl.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/url/LuanUrl.java	Sun Aug 28 14:50:47 2016 -0600
+++ b/src/luan/modules/url/LuanUrl.java	Mon Aug 29 21:47:19 2016 -0600
@@ -123,11 +123,9 @@
 						}
 					}
 				}
-				if( this.method==Method.DELETE )
-					throw new LuanException( "the DELETE method cannot take parameters" );
 				if( this.method==Method.POST ) {
 					content = sb.toString();
-				} else { // GET
+				} else {
 					String urlS = this.url.toString();
 					if( urlS.indexOf('?') == -1 ) {
 						urlS += '?';