Mercurial Hosting > luan
diff src/luan/modules/url/UrlCall.java @ 1165:668f29bc52ea
clean up content-type
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 07 Feb 2018 23:16:12 -0700 |
parents | 1a68fc55a80c |
children |
line wrap: on
line diff
--- a/src/luan/modules/url/UrlCall.java Wed Feb 07 17:36:38 2018 -0700 +++ b/src/luan/modules/url/UrlCall.java Wed Feb 07 23:16:12 2018 -0700 @@ -40,7 +40,7 @@ public String post(String content,String contentType) throws IOException { HttpURLConnection connection = (HttpURLConnection)this.connection; - connection.setRequestProperty("Content-type",contentType); + connection.setRequestProperty("content-type",contentType); connection.setDoOutput(true); connection.setRequestMethod("POST");