mercadolibre / java-restclient

A lightweight REST client implementation for Java 1.7+.
Apache License 2.0
38 stars 15 forks source link

Constructor de StringPart asigna mal parámetros #5

Open imartinezml opened 4 years ago

imartinezml commented 4 years ago

Dejo el código donde está el bug: https://github.com/mercadolibre/java-restclient/blob/e3204d2d1620d372b56a44204319245776712ee5/restclient-core/src/main/java/com/mercadolibre/restclient/multipart/StringPart.java#L24

public StringPart(String name, String body, ContentType contentType) {
        this.body = name;
        this.name = body;
        this.contentType = contentType;
    }
imartinezml commented 4 years ago

Yes, it is the same problem. Never saw that one there.