@@ -145,27 +145,28 @@ private JiraResponse execute(JiraRequest request) throws IntegrationException {
145
145
146
146
private JiraRequest .Builder createRequestBuilder (HttpUrl url , HttpMethod httpMethod ) {
147
147
return new JiraRequest .Builder ()
148
- .url (url )
149
- .method (httpMethod );
148
+ .url (url )
149
+ .method (httpMethod );
150
150
}
151
151
152
152
private JiraRequest createPostRequest (HttpUrl url , String bodyContent ) {
153
153
return createRequestBuilder (url , HttpMethod .POST )
154
- .addHeader ("Content-Type" , "application/json" )
155
- .bodyContent (bodyContent )
156
- .build ();
154
+ .addHeader ("Content-Type" , "application/json" )
155
+ .bodyContent (bodyContent )
156
+ .build ();
157
157
}
158
158
159
159
private JiraRequest createPutRequest (HttpUrl url , String bodyContent ) {
160
160
return createRequestBuilder (url , HttpMethod .PUT )
161
- .addHeader ("Content-Type" , "application/json" )
162
- .bodyContent (bodyContent )
163
- .build ();
161
+ .addHeader ("Content-Type" , "application/json" )
162
+ .bodyContent (bodyContent )
163
+ .build ();
164
164
}
165
165
166
166
private JiraRequest createDeleteRequest (HttpUrl url ) {
167
167
return createRequestBuilder (url , HttpMethod .DELETE )
168
- .build ();
168
+ .addHeader ("Content-Type" , "application/json" )
169
+ .build ();
169
170
}
170
171
171
172
private <R extends IntRestComponent > R parseResponse (JiraResponse jiraResponse , Type type ) throws IntegrationException {
0 commit comments