There was an error while loading. Please reload this page.
1 parent fb023c7 commit b9ef8c6Copy full SHA for b9ef8c6
1 file changed
src/main/java/org/javawebstack/httpclient/HTTPRequest.java
@@ -133,6 +133,8 @@ public <T> T object(Class<T> type){
133
134
public GraphElement graph(){
135
String contentType = header("Content-Type");
136
+ if(contentType == null)
137
+ contentType = "application/json";
138
switch (contentType){
139
case "application/x-www-form-urlencoded":
140
GraphElement.fromFormData(string());
0 commit comments