mirror of https://github.com/apache/jclouds.git
relaxed reponse builder as sometimes servers mistakenly do not include a message in the http response
This commit is contained in:
parent
9e7dbc5612
commit
06355017b0
|
@ -19,8 +19,6 @@
|
|||
|
||||
package org.jclouds.http;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import org.jclouds.io.Payload;
|
||||
|
@ -43,7 +41,7 @@ public class HttpResponse extends HttpMessage {
|
|||
private String message;
|
||||
|
||||
public Builder message(String message) {
|
||||
this.message = checkNotNull(message, "message");
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue