Skip to content

PUT request fails to complete with content type and body #14

@killvetrov

Description

@killvetrov

Running the following request fails in version 1.4.1.

EasyNet.put()
    .setUrl(destinationUrl)
    .setContentType("image/png")
    .addParam(imageFile);

Log output:

I/EasyNetwork: [PUT] https://storage.googleapis.com/...
I/EasyNetwork: [Headers]: User-Agent=App-Android/1.0-dev Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075); Content-Type=image/png;
I/EasyNetwork: [Error]: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions