Skip to content

Commit c314664

Browse files
committed
Remove CONTENT_TYPE_DEFAULT (#460)
1 parent 2a5ef5f commit c314664

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

metafacture-io/src/main/java/org/metafacture/io/HttpOpener.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* @author Jan Schnasse
4545
* @author Jens Wille
4646
*/
47-
@Description("Opens an HTTP resource. Supports the setting of `Accept` and `Accept-Charset` as HTTP header fields, as well as generic headers (separated by `\\n`). Default setting of header `Accept` and `Content-Type` is '*/*' and `Encoding` is 'UTF-8'; default for 'method' is 'GET' and 'ErrorPrefix' is '@-'.")
47+
@Description("Opens an HTTP resource. Supports the setting of `Accept` and `Accept-Charset` as HTTP header fields, as well as generic headers (separated by `\\n`). Default setting of header `Accept` is '*/*' and `Encoding` is 'UTF-8'; default for 'method' is 'GET' and 'ErrorPrefix' is '@-'.")
4848
@In(String.class)
4949
@Out(Reader.class)
5050
@FluxCommand("open-http")
@@ -55,7 +55,6 @@ public final class HttpOpener extends DefaultObjectPipe<String, ObjectReceiver<R
5555

5656
private static final String ACCEPT_DEFAULT = "*/*";
5757
private static final String ACCEPT_HEADER = "accept";
58-
private static final String CONTENT_TYPE_DEFAULT = "*/*";
5958
private static final String CONTENT_TYPE_HEADER = "content-type";
6059
private static final String DEFAULT_PREFIX = "ERROR: ";
6160
private static final String ENCODING_DEFAULT = "UTF-8";
@@ -99,7 +98,6 @@ private boolean getInputAsBody() {
9998
*/
10099
public HttpOpener() {
101100
setAccept(ACCEPT_DEFAULT);
102-
setContentType(CONTENT_TYPE_DEFAULT);
103101
setEncoding(ENCODING_DEFAULT);
104102
setErrorPrefix(DEFAULT_PREFIX);
105103
setMethod(DEFAULT_METHOD);

0 commit comments

Comments
 (0)