Skip to content

Commit

Permalink
Made Update a put request (apache#41)
Browse files Browse the repository at this point in the history
* Create pulsar-functions module (#1)

* Create pulsar-functions module

* rename `sdk` package to `api`

* Added the first cut of the Java interface for Pulsar functions (#2)

* Adhere to rest semantics
  • Loading branch information
srkukarni authored and sijie committed Mar 4, 2018
1 parent 4b4bea7 commit a1b1ea5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void updateFunction(FunctionConfig functionConfig, byte[] code) throws Pu
MediaType.APPLICATION_JSON_TYPE));
}
request(functions.path(functionConfig.getTenant()).path(functionConfig.getNameSpace()).path(functionConfig.getName()))
.post(Entity.entity(mp, MediaType.MULTIPART_FORM_DATA), ErrorData.class);
.put(Entity.entity(mp, MediaType.MULTIPART_FORM_DATA), ErrorData.class);
} catch (Exception e) {
throw getApiException(e);
}
Expand Down

0 comments on commit a1b1ea5

Please sign in to comment.