Skip to content

Commit

Permalink
fix accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
Oemer Yildiz committed Nov 4, 2015
1 parent 076e281 commit f477be8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public <P> HttpURLConnection getConnection(final String serviceUrl, final P post
connection = (HttpURLConnection) restService.openConnection();
}
connection.setDoInput(true);
connection.setRequestProperty("Accepts:", "application/json");
connection.setRequestProperty("Accept", "application/json");
connection.setUseCaches(false);
connection.setRequestProperty("charset", "utf-8");
connection.setRequestProperty("Connection", "close");
Expand Down

0 comments on commit f477be8

Please sign in to comment.