Skip to content

Modify user agent to explicitly use cloudinary-core version #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import java.net.URL;
import java.util.Map;

import static com.cloudinary.Cloudinary.VERSION;

/**
* This utility class provides an abstraction layer for sending multipart HTTP
* POST requests to a web server.
Expand All @@ -23,7 +25,9 @@
* @author Cloudinary
*/
public class MultipartUtility {
public final static String USER_AGENT = "CloudinaryAndroid/" + MediaManager.VERSION + " (Android " + Build.VERSION.RELEASE + "; " + Build.MODEL + " Build/" + Build.DISPLAY + ") " + Cloudinary.USER_AGENT;
public final static String USER_AGENT = "CloudinaryAndroid/" + MediaManager.VERSION +
" (Android " + Build.VERSION.RELEASE + "; " + Build.MODEL + " Build/" + Build.DISPLAY
+ ") CloudinaryJava/" + VERSION;
private static final String LINE_FEED = "\r\n";
private static final String APPLICATION_OCTET_STREAM = "application/octet-stream";
private final String boundary;
Expand Down