Skip to content

Commit

Permalink
Setting "content-type" header.
Browse files Browse the repository at this point in the history
  • Loading branch information
DuncanBeutler committed Mar 16, 2022
1 parent acd46d6 commit 3f31115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/smartystreets/api/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ private static String urlEncode(String value) {
public String getUrl() {
String url = this.urlPrefix;

this.headers.put("content-type", this.contentType);

if (!url.contains("?"))
url += "?";

Expand Down

0 comments on commit 3f31115

Please sign in to comment.